2008/11/3 Alan Baljeu <[EMAIL PROTECTED]>

> 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@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
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to