4 ms·
Not really, because the goal is that obj is replaced by a different instance, not to change its type. Become can swap two objects that are exactly of the same
by kazinator 4y ago
Not really, because the goal is that obj is replaced by a different instance, not to change its type.
Become can swap two objects that are exactly of the same type, where the prototype change would be a null operation, achieving nothing.
- c-smile 4y ago"obj is replaced by a different instance" Could you provide real life scenario when you will need that? I mean to change all references to the object in the heap at runtime ...
- pjmlp 4y agoLive code editing on Smalltalk debugger, after changes on the class browser, redoing statement that caused the break into debugger, and have all live instances on the image updated.