So, I take it that clone is a "stupider" (no postCopy polymorphism) version of copy (or shallowCopy). Is that right, or does it do something odd?
On Jan 15, 2008 5:38 PM, Randal L. Schwartz <[EMAIL PROTECTED]> wrote: > >>>>> "Jakub" == Jakub <[EMAIL PROTECTED]> writes: > > Jakub> yeah a, b instance of same class and i want copy all instance > variables > Jakub> values to a i want do a := b but i dont want to a is same object as > b. In > Jakub> memory will be two objects a, b with same values .. but if i change > a i dont > Jakub> change b. > > b := a copy. > > but you might also want to look at #deepCopy. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 > 0095 > <[EMAIL PROTECTED]> <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! > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners >
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners