http://qs1969.pair.com?node_id=197111


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?