Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: XS and C++: keep it simple and use pointers

by kilinrax (Deacon)
on Sep 11, 2002 at 22:50 UTC ( [id://197111] : note . print w/replies, xml ) Need Help??

in reply to XS and C++: keep it simple and use pointers
in thread Writing XS frontends to C++ libraries.

Thanks, that's helped a lot :)
Unfortunately, however, some of the methods return objects, rather than pointers to objects; or take arguments in the same way - so still give errors as above.

Currently I have lines like these for each object in my typemap:

MySettings O_OBJECT MYSettings * O_OBJECT
Which, looking at it, seems very wrong. IIrc, O_OBJECT is for pointers to objects, not objects. Is there an equivalent to O_OBJECT for objects themselves, or will this require a specialised typemap?