Subj : Re: Private Data and Prototype Inheritance To : netscape.public.mozilla.jseng From : Marcello Bastea-Forte Date : Fri Jan 09 2004 05:43 pm > Is there a idiom or recommended way of converting to and from jsvals and > pointers? It seems that I would have to use a jsdouble or string since ints > are shifted internally. Unless I'm not understanding what you mean, can't you use the JSVAL_TO_x and x_TO_JSVAL macros? They're all documented in the spidermonkey api docs, and convert jsvals to int, bool, jsdouble, JSString *, JSObject *, and maybe something else I'm forgetting. I think there's some stuff for void and "constant" types. Marcello .