assignment message (Re: [squeak-dev] Re: Selectors with underscores)

Stéphane Rollandin lecteur at zogotounga.net
Thu Mar 18 14:57:53 UTC 2010


> E.g. this
>
> 	| a b |
> 	a := 42.
> 	b := a.
> 	^ b
>
> is fully equivalent to
>
> 	| a b |
> 	a := 42.
> 	thisContext at: 2 put: (thisContext at: 1).
> 	^ b

thanks for the clarification.

can the
	| a b |
part also be rewritten by sending messages to thisContext ?

Stef





More information about the Squeak-dev mailing list