Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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?

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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found