Re: de-mortal variable ?

2004-03-11 Thread Vladimir Marek
I do have C++ object typemapped into perl class. Then I have two functions which creates and destroys that object create_object ($obj); destroy_object ($obj); first function is easy, I create the object like: c_obj *x=new c_obj; sv_setref_pv( ST(0)), CLASS, (void*)x ); SvSETMAGIC(ST(0)); but the

Re: de-mortal variable ?

2004-03-11 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 11 March 2004 12:30, Vladimir Marek wrote: > > I do have C++ object typemapped into perl class. Then I have two > > functions which creates and destroys that object > If anyone cares, I found different, imho better and easier solution. > Just w

Re: de-mortal variable ?

2004-03-11 Thread Vladimir Marek
Tels wrote: -BEGIN PGP SIGNED MESSAGE- Moin, On Thursday 11 March 2004 12:30, Vladimir Marek wrote: I do have C++ object typemapped into perl class. Then I have two functions which creates and destroys that object If anyone cares, I found different, imho better and easier solution. Just

Re: de-mortal variable ?

2004-03-11 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Helo, On Thursday 11 March 2004 18:36, Vladimir Marek wrote: > Tels wrote: > The object is message sent over network. Actual sending does C++ library > which has own thread for sending the message, and which frees the object > when it is sent. When I pass the o