[Pharo4][Slots] Migration of instances now Slot-aware
Jan. 28, 2015
1:09 p.m.
Hi, Thanks to Max, the instance migration when changing a class with existing instances is now aware of slots. e.g., you can Object subclass: #A slots: { #iv => TestSlot } classVariables: { } category: âPlayground' do A new, change iv, then change the definition to a normal instance var: Object subclass: #A slots: { #iv } classVariables: { } category: âPlayground' ==> instance is migrated while keeping the value. TODO (to have a first complete version) -> hidden slots (slice needs another pass) -> build hook -> call #initialize: on all Slots after #new when requested. Marcus
4202
Age (days ago)
4202
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcus Denker