Is it possible to extend an individual object in Smalltalk

后端 未结 6 1615
灰色年华
灰色年华 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 02:15

    As @ewernli points out Bifrost basically makes Smalltalk an object-centric reflection system. All reflective changes are targeted first at objects instead of having an hybrid mechanism with classes. You can still do all the traditional class reflection but on top of object-centric reflection. What I think that is relevant of this new approach is a number of applications that we found that improves how we developed and perceived a live system:

    Object-centric debugging completely changes the way we debug by concentrating on objects and allowing the developer to remain interacting with live objects rather than having to insert conditional breakpoints at source code level.

    Talents are composable dynamic units of reuse, like traits but for objects. There are many more applications.

提交回复
热议问题