On Tue, Aug 08, 2006 at 09:22:47PM +0200, Vaclav Barta wrote:
> [...] but I managed to get it working by also defining a constructor
> in Perl and blessing the pointer returned from XS into the package -
> in retrospect, it makes a lot of sense that the reference must be
> blessed to behave like an object... perldoc perlxs describes how to
> bless stuff inside typemap, but again, perhaps it's easier to do it
> manually...

As you can see from another of my messages in this thread I do bless by
object (a HV reference with some magic) into the right class. It would
be interesting if perl does anything different when calling it's builtin
'bless' than I do in my wrapper code. I did it in pretty much the same
way that perlxs describes.


-Flo

-- 
BOFH excuse #418:
Sysadmins busy fighting SPAM.

Attachment: signature.asc
Description: Digital signature

Reply via email to