|
Re: Object clone: msg#00065lang.smalltalk.squeak.beginners
>>>>> "Marcin" == Marcin Tustin <mm3@xxxxxxxxxx> writes: Marcin> So, I take it that clone is a "stupider" (no postCopy polymorphism) version Marcin> of copy (or shallowCopy). Is that right, or does it do something odd? Object>>#clone looks like an optional-implemented primitive that does a #shallowCopy, but without the fallback-to-smalltalk that #shallowCopy performs. Not sure why those are both in the image. I'd stick with #copy unless I was the implementor of the class being copied, and even then, I'd make copy "do the right thing". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Object clone, Marcin Tustin |
|---|---|
| Next by Date: | Object copyFrom: [was: Object clone], Klaus D. Witzel |
| Previous by Thread: | Re: Object clone, Marcin Tustin |
| Next by Thread: | Re: Object clone, Xinyu Liu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |