[squeak-dev] Shadowing "reserved" variables

JOHN SARKELA wiljo at mac.com
Fri Jul 19 01:25:55 UTC 2019


It is by definition erroneous. It is counter to the definition of the standard language. That is a problem that should be fixed.

> On Jul 18, 2019, at 7:53 PM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com <mailto:nicolas.cellier.aka.nice at gmail.com>> wrote:
> 
> Is it really a problem?
> Did the system horribly break?
> IMO this should just be not recommended.
> 
> Le ven. 19 juil. 2019 à 00:39, Chris Muller <asqueaker at gmail.com <mailto:asqueaker at gmail.com>> a écrit :
> 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 <mailto: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/78948af0/attachment.html>


More information about the Squeak-dev mailing list