[C++-sig] [pybindgen] references?

Gustavo Carneiro gjcarneiro at gmail.com
Tue Nov 4 00:49:22 CET 2008


2008/11/3 Alan Baljeu <alanbaljeu at yahoo.com>

> I just read the tutorial page on pybindgen, but it doesn't talk about
> reference types.  99% of my C++ code involves passing around things like
> foo&, so this is significant to me.  How is it done?


e.g.:

MyClass.add_method("foobar", retval('void'), param("something &",
"paramName", direction=Parameter.DIRECTION_INOUT)

See
http://pybindgen.googlecode.com/svn/trunk/apidocs/pybindgen.typehandlers.base.Parameter-class.html#__init__




>
>
>
>      __________________________________________________________________
> Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo!
> Canada Messenger at http://ca.beta.messenger.yahoo.com/
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20081103/8ef8cdd4/attachment.htm>


More information about the Cplusplus-sig mailing list