Subj : Re: [spidermonkey] how to modify the [[value]] of an object To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Aug 10 2005 04:32 pm franck wrote: > var obj = Object(123); > obj.foo = 678; > > typeof( obj ); // => object > obj; // => 123 > obj.foo; // 678 > > > And I wondering how to access the [[value]] (123 in my example) of an > object in native code. I can't help you with C/C++ code but in script code you could call obj.toString() or obj.valueOf() to read out the value so perhaps that helps in calling the right method from C/C++. -- Martin Honnen http://JavaScript.FAQTs.com/ .