[squeak-dev] Behavior deepCopy smells
Nicolas Cellier
nicolas.cellier.aka.nice at gmail.com
Wed Dec 29 10:17:18 UTC 2010
I think that Behavior>>deepCopy should either
^self
or
^self copy
but not
^self shallowCopy
because the methodDictionary should be copied not shared (plus
problems with shared subclasses, Metaclass soleInstance etc...).
I suggest ^self. OK ?
Nicolas
More information about the Squeak-dev
mailing list
|