Re: Calling constructor with xsub

2002-10-13 Thread Nick Ing-Simmons
Bill Moseley [EMAIL PROTECTED] writes: PUSHMARK; XPUSHs(swish_handle_sv); XPUSHs(query_sv); PUTBACK; call_method(new,G_SCALAR); SPAGAIN; search_object_sv = POPs; I think that last line is where I'm going to get stuck. See below. Which suggests that using this

Re: Calling constructor with xsub

2002-10-13 Thread Nick Ing-Simmons
Bill Moseley [EMAIL PROTECTED] writes: I also realize that in my xsub there's no real point in calling SWISH::API::Search::new just to create the object as New_Search_Object can just call the C code to fetch the new struct returned as an object. I think I could do that directly with

Re: Calling constructor with xsub

2002-10-13 Thread Bill Moseley
At 04:59 PM 10/13/02 +0100, Nick Ing-Simmons wrote: sv_setref_pv gives me a headache too. (FWIW most of my objects use sv_setref_iv as I store pointers to C/C++ objects in IV rather than PV - but you need to be consistent.) I thought sv_setref_pv did store the pointer as an IV. The typemap