Is it possible to extend an individual object in Smalltalk

后端 未结 6 1603
灰色年华
灰色年华 2020-12-16 01:28

I\'m doing research in Smalltalk reflection, and I was wondering if it was possible to extend an individual object like that would be possible for instance in Ruby. With thi

6条回答
  •  既然无缘
    2020-12-16 01:59

    A colleage has been working a new reflective API for Pharo Smalltalk that is called Bifrost. you can check the page of the Bifrost project.

    His approach pushes instance-specific adapations at its core. Everything happens by binding metaobjects to regular objects in order to adapt them. Lower-level metaobjects can be composed into higher-level, coarse-grained, metaobject that define sensible adaptations, e.g. a profiling metaobject that will measure the time each invocation on the target object takes.

提交回复
热议问题