Subj : difference between obj and parent_proto in Js_Init_class To : netscape.public.mozilla.jseng From : brann Date : Fri May 07 2004 05:36 pm hi I'm in trouble for understanding the difference between those 2 parameters of the js_init_class function obj JSObject * Pointer to the object to use for initializing the class. parent_proto JSObject * Pointer to a prototype object for the class. As far as i know, the js_init_class function returns a prototype that i will use later to create objects. This prototype inherits the methods/attributes of the parent_proto. But what is the obj parameter for? The documentation at http://www.mozilla.org/js/spidermonkey/apidoc/gen/complete.html#JS_InitClass doesnt say much on that topic thx for helping ! Brann .