#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

Reply via email to