Subj : Re: SetPrivate and live objects To : netscape.public.mozilla.jseng From : Brendan Eich Date : Thu Nov 13 2003 01:08 pm Sterling Bates wrote: >"Brendan Eich" wrote in message >news:3FB3D1C1.1080503@meer.net... > > >>Sterling Bates wrote: >> >> >> >>>That being the case, I could try a long address to an object instance. >>> >>> >>What are you talking about? I already said you shouldn't be changing >>the definition of PRIVATE_TO_JSVAL or any other macro in jsapi.h, and >>gave the particular reason. Why do you want to play with fire? >> >> > >Sorry, Brendan, that's not what I meant :) I fully respect your code, your >experience, and won't change a thing. I'm referring to creating a pointer >to a pointer (object instance) from Delphi, and adding that as the private >variable. > > Oh, sorry -- I misunderstood you. Also, you misunderstood me if you thought I was arguing from my own authority. I was dismayed that you wanted to change the definition of macros in jsapi.h, but not on account of anything personal. I'd be just as dismayed if you hacked around in sys/types.h or sys/stat.h on Unix or Linux without knowing why things in those files were the way they are. Or fiddling with your car's fuel injection software without having grokked it fully. If you want to stash a pointer to a pointer, tagged via PRIVATE_TO_JSVAL, go for it. The engine doesn't care how many degrees of indirection you use. But why use more than one level? I don't understand why you would want a pointer to a pointer, instead of just a pointer. /be .