Subj : Re: Checking JSObject class type To : netscape.public.mozilla.jseng From : "t o b e" Date : Mon Jan 26 2004 06:35 pm > > Could you use > > > > JS_GetClass(new_obj) == classSpec > > Well, I suppose I can do that, but I would have to define an "==" > operator, which would have to consist of a check of the name value, in > addition to everything else... Eh ?? That's a direct comparison of the address of the class object from which the object was made with the address of an arbitrary class object. If the two are the same then new_obj is of the type classSpec describes. Simple as that... no strings involved whatsoever. t o b e .