Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by kilinrax (Deacon)
on Sep 11, 2002 at 22:50 UTC ( #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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2022-08-08 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?