Some questions about become:

Bob Arning arning at charm.net
Mon Oct 1 20:37:54 UTC 2001


On Mon, 01 Oct 2001 22:19:21 +0200 ducasse stephane <ducasse at iam.unibe.ch> wrote:
>I would like to know if there are some particular points I should pay
>attention when using become: on some smallIntegers or heavily optimized
>objects like 1, 2 ....

Sure - it doesn't work.

become: otherObject 
	"Primitive. Swap the object pointers of the receiver and the argument.
	All variables in the entire system that used to point to the 
	receiver now point to the argument, and vice-versa.
	Fails if either object is a SmallInteger"

Cheers,
Bob




More information about the Squeak-dev mailing list