Re: Array property of custom object

Mihai Dobrescu <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On Saturday, May 7, 2016 at 10:04:53 AM UTC+3, Mihai Dobrescu wrote:
> On Friday, May 6, 2016 at 9:10:04 PM UTC+3, Mihai Dobrescu wrote:
> > On Wednesday, May 4, 2016 at 4:47:35 PM UTC+3, Mihai Dobrescu wrote:
> > > On Wednesday, May 4, 2016 at 4:35:38 PM UTC+3, Boris Zbarsky wrote:
> > > > On 5/4/16 9:34 AM, Mihai Dobrescu wrote:
> > > > > Thanks, but I can't see any.
> > > > 
> > > > See 
> > > > https://groups.google.com/d/msg/mozilla.dev.tech.js-engine/WaSw2Wcy5R4/vhx_R-IOBwAJ 
> > > > from yesterday.
> > > > 
> > > > -Boris
> > > 
> > > Ah, that one, I was thinking there is another one, sorry.
> > 
> > I am not afraid to refactor everything, but still, I don't know what to do with that, sorry. Can't tell what to look for in order to implement some proxy wrapper for my classes (I feel I should re-implement them as proxies). But I fail to separate the actual sample code from the things I should re-write.
> 
> What is js::Wrapper? I look to have wrapper classes all over (as I embed an API). I've read its comments, but still I am having a hard time to understand what are these, as no public documentation is available or I couldn't find it.
> Basically, I need to handle objects with custom data (read having not always javascript datatypes). What is the best approach in this case? I need to alter these C objects and to propagate that through SpiderMonkey mechanisms.

I've found another classes I would like to know what is their purpose: ProxyObject and its descendants, like WrapperObject.

Actually, is there a way to use these instead of "standard" classes? Why shold this worth?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.