[squeak-dev] Shadowing "reserved" variables
tim at rowledge.org
Wed Jul 17 16:49:03 UTC 2019
> On 2019-07-17, at 3:51 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> 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?
I think I'd quite like to see that prevented.
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: BOZO: Use Multics operating system
More information about the Squeak-dev