[Newbies] 1-way #become: ?

2008-02-18 Thread itsme213
#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@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] 1-way #become: ?

2008-02-18 Thread Michael van der Gulik
See becomeForward:

Gulik.

On Feb 19, 2008 4:59 PM, itsme213 [EMAIL PROTECTED] 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@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/mailman/listinfo/beginners




-- 
http://people.squeakfoundation.org/person/mikevdg
http://gulik.pbwiki.com/
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners