How to escape implicit 'with (this)' of a method body

Brendan Eich brendan at mozilla.org
Fri Aug 1 17:04:55 PDT 2008


On Aug 1, 2008, at 2:43 PM, Garrett Smith wrote:

> What is dynamically inserted? I guess would mean properties added to
> an instance of a non-sealed class.

Right. Those should not be addressable by unqualified names in method  
scope -- you have to use "this".

>> so all references continue to be
>> bound at compile time and this sort of brittleness does not come up?
>
> I think I remember discussion that 'this' in a static context was  
> not valid.

Maciej meant static in the compile-time or lexical sense, not static  
in the class singleton object property sense.

/be



More information about the Es4-discuss mailing list