[Newbies] 1-way #become: ?

Michael van der Gulik mikevdg at gmail.com
Tue Feb 19 04:04:07 UTC 2008


See >>becomeForward:

Gulik.

On Feb 19, 2008 4:59 PM, itsme213 <itsme213 at hotmail.com> wrote:

> #become: apparently (effectively) swaps object ids.
>
> Is there anything like
>    x oneWayBecome: y
> that would pass this test:
>
> testOneWayBecome: x to: y
>    | a b |
>    a := x.
>    b := y.
>    x oneWayBecome: y.
>    self assert: [x == y].
>    self assert: [a == y].
>    self assert: [b == y].
>
> (Not related to my earlier collection empty question)
>
> Thanks - Sophie
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>



-- 
http://people.squeakfoundation.org/person/mikevdg
http://gulik.pbwiki.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080219/aa483d77/attachment.htm


More information about the Beginners mailing list