[squeak-dev] Shadowing "reserved" variables

Levente Uzonyi leves at caesar.elte.hu
Wed Jul 17 10:51:54 UTC 2019


Hi All,

You can currently evaluate the following:

[ :self :thisContext |
 	| nil super true false |
 	nil := 1.
 	super := 2.
 	true := 3.
 	false := 4.
 	self + thisContext = (nil + super + true + false) ] value: 4 value: 6

Is this the expected behavior or should we disallow such oddities?

Levente


More information about the Squeak-dev mailing list