[Pkg] The Trunk: Kernel-nice.533.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Feb 13 19:38:09 UTC 2011
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.533.mcz
==================== Summary ====================
Name: Kernel-nice.533
Author: nice
Time: 29 December 2010, 12:23:26.17 pm
UUID: 477d8325-a6e0-469f-a805-27e058d930fd
Ancestors: Kernel-nice.532
1) Let Behavior>>deepCopy return self, senders of deepCopy generally have no reason to copy a Behavior.
Moreover, the old code did a shallowCopy which is a non sense.
2) Make it explicit that veryDeepCopy does not copy any Behavior.
This was explicit for Metaclass, but implicit for Class (see Object>>#veryDeepInner: ), and undefined for Traits (they are not used, but who knows...).
=============== Diff against Kernel-nice.532 ===============
Item was changed:
----- Method: Behavior>>deepCopy (in category 'copying') -----
deepCopy
+ "Behavior are shared rather than copied."
- "Classes should only be shallowCopied or made anew."
+ ^ self!
- ^ self shallowCopy!
Item was added:
+ ----- Method: Behavior>>veryDeepCopyWith: (in category 'copying') -----
+ veryDeepCopyWith: deepCopier
+ "Return self. Must be created, not copied. Do not record me."!
Item was removed:
- ----- Method: Metaclass>>veryDeepCopyWith: (in category 'copying') -----
- veryDeepCopyWith: deepCopier
- "Return self. Must be created, not copied. Do not record me."!
More information about the Packages
mailing list