[squeak-dev] Shadowing "reserved" variables

Chris Muller asqueaker at gmail.com
Thu Jul 18 22:38:50 UTC 2019


Wow.  We should disallow that.  Those words are reserved.

On Wed, Jul 17, 2019 at 5:52 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?
>
> Levente
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190718/c7fb5e13/attachment.html>


More information about the Squeak-dev mailing list