[Newbies] Object clone

Jakub seasidebeginner at gmail.com
Tue Jan 15 17:29:53 UTC 2008


yeah a, b instance of same class and i want copy all instance variables
values to a i want do a := b but i dont want to a is same object as b. In
memory will be two objects a, b with same values .. but if i change a i dont
change b.

regards

2008/1/15, Mathieu Suen <mathk.sue at gmail.com>:
>
> Hi Jakub
>
> I don't really understand your question.
> What is a and b? Are they instance of the same class?
>
> On Jan 14, 2008, at 10:42 PM, Jakub wrote:
>
> > hello,
> >
> > i want do i want set var a as all instance vars of b. Something s
> > clone - coppy of one object. I look for clone command in SBE book
> > but i found nothing.
> >
> > Thnx.
> >
> > --
> > Jakub. _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>         Mth
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>



-- 
Jakub.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080115/29d359d3/attachment.htm


More information about the Beginners mailing list