Re: Copy private symbols from one object to another

2012-11-26 Thread Brendan Eich
Brandon Benvie wrote: By design, private symbols can only be used if you have direct access to them in some way. Right. Public symbols should show up in getOwnPropertyNames (if I have followed recent discussion correctly). I don't recall this, and it's an incompatible change from ES5. Can

Re: Copy private symbols from one object to another

2012-11-26 Thread Brandon Benvie
Ah I guess I misread what was said back in the July meeting and then misinterpreted the recent discussion in that framing. The recent discussion I'm referring to is at and around https://mail.mozilla.org/pipermail/es-discuss/2012-November/026536.html On Mon, Nov 26, 2012 at 12:41 PM, Brendan

Re: Copy private symbols from one object to another

2012-11-26 Thread Brandon Benvie
Or I guess to clarify, I don't understand what the distinction is between a private symbol and a unique symbol if unique symbols don't show up anywhere. So I jumped to the assumption that they did show up in gOPN based on what I read. On Mon, Nov 26, 2012 at 1:32 PM, Brandon Benvie

Re: Copy private symbols from one object to another

2012-11-26 Thread Tom Van Cutsem
2012/11/26 Brandon Benvie bran...@brandonbenvie.com Or I guess to clarify, I don't understand what the distinction is between a private symbol and a unique symbol if unique symbols don't show up anywhere. So I jumped to the assumption that they did show up in gOPN based on what I read. For

Re: Copy private symbols from one object to another

2012-11-26 Thread Allen Wirfs-Brock
One way or another we need a way to reflectively identify all the non-private own property keys of an object including non-private symbols keys. If we think the compat risk of adding symbols to the result of Object.getOwnProperyNames is too great (and we've recently discussed why this might

Copy private symbols from one object to another

2012-11-25 Thread Nathan Wall
Given the commonness of mixing one object into another, I was wondering how this would work with private symbols -- considering methods will expect to find those symbols on the objects on which they are called. Has there been any discussion about providing a way to copy private symbols under

Re: Copy private symbols from one object to another

2012-11-25 Thread Brandon Benvie
By design, private symbols can only be used if you have direct access to them in some way. Public symbols should show up in getOwnPropertyNames (if I have followed recent discussion correctly). The fact that private symbols must be explicitly passed around to gain access to them is their primary