Semantics of "indexed" string access

Brendan Eich brendan at
Tue Jun 24 19:33:41 PDT 2008

On Jun 24, 2008, at 6:39 PM, Allen Wirfs-Brock wrote:

> Actually, the intent was to support “indexed” access to both string  
> values and string wrapper objects.  I just didn’t make it clear in  
> the example.  The case analysis was intended to apply to both. My  
> reading of section 11.2.1 is that  a string value is to be  
> transformed into an object before any actual property access  
> semantics are applied. Am I wrong?

No, the primitive string type (called "String", confusingly, in ES1-3  
when it uses type names) is not an object. It has no internal methods  
such as [[Get]].

Specifying the indexed unit-string access semantic based on the  
wrapper String (spelled as in the language) object seems ok. I noted  
a Result(4) that should have been Result(6) in step 7, via private  
email to Allen (this type of error is going to happen a lot; count on  

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Es4-discuss mailing list