copy
        "Answer another instance just like the receiver. Subclasses typically 
override postCopy; they typically do not override shallowCopy. Copy is a 
template method in the sense of Design Patterns. So do not override it. 
Override shallowCopy instead. Pay attention that normally you should call 
postCopy of your superclass too."

        ^self shallowCopy postCopy



shallowCopy
        "Answer a copy of the receiver which shares the receiver's instance 
variables. It should never be overridden. I'm invoked from the copy template 
method. Subclasses that need to specialize the copy should specialize the 
postCopy hook method."


The references to #postCopy are probably valid, but the comments above can't 
both be correct.  Right??

Bill


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to