MorphSlot extension for duplicate?
If a morph holds onto another morph in an instVar, it often shouldn't be copied when doing a duplicate. Is that something that a MorphSlot variant could support? Stephan
Hi, The method doing the copying could take into account the type of variable used and not recurse it when copying. In addition, with first class variables one could attach meta data for object copying and have some annotation âskip this when duplicatingâ. Marcus
On 02 Oct 2015, at 11:26, Stephan Eggermont <stephan@stack.nl> wrote:
If a morph holds onto another morph in an instVar, it often shouldn't be copied when doing a duplicate. Is that something that a MorphSlot variant could support?
Stephan
Pay attention that the more magic you use the more difficult to understand the system will be. For me duplicate should call copy and we should be able to see that copy does not copy the instVar. Le 2/10/15 11:26, Stephan Eggermont a écrit :
If a morph holds onto another morph in an instVar, it often shouldn't be copied when doing a duplicate. Is that something that a MorphSlot variant could support?
Stephan
participants (3)
-
Marcus Denker -
Stephan Eggermont -
stepharo