On Jul 8, 2011, at 7:43 AM, Juan Ignacio Dopazo wrote:

> My first thought was: why not just statically replace this.x, with private x, 
> with this[xPrivateName] and forget about accessing private properties of 
> other objects? That would still leave the problem of closures inside methods, 
> though...

If xPrivateName is a private name object, then there's no reason to "forget 
about accessing private properties of other objects". Both this[xPrivateName] 
and other[xPrivateName] work as you would expect.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to