Structs

Brendan Eich brendan at mozilla.com
Wed Jun 2 22:29:25 PDT 2010


On Jun 2, 2010, at 10:26 PM, Brendan Eich wrote:

> For an expression a[i]j.x,

Sorry, obvious typo adding a 'j' there (keyboard malfunction, and hard  
to see in the font I'm looking at!). No confusion in the rest:

> the ES specs all evaluate a[i], call GetValue on it if a Reference,  
> then make a new Reference with the result as base and 'x' as the  
> propertyName. Only then, depending on whether a[i].x occurs as the  
> left-hand side of assignment or in a RHS expression, e.g., would we  
> PutValue or GetValue.

/be


More information about the es-discuss mailing list