« Return to Thread: Recognizing the same objects

Re: Recognizing the same objects

by Dustin J. Mitchell-3 :: Rate this Message:

Reply to Author | View in Thread

On Thu, May 15, 2008 at 9:09 PM, Daniel K. O. <danielko.listas@...> wrote:
> Could this be done with the help of typemaps?

Yes -- but the problem is that this leads to a reference loop -- your
python object has a ref to the C++ object, and your C++ object has a
ref to the python object.  You can get around this with weakrefs, but
it will make it more complicated.

I'm pretty sure this is possbile, but I haven't done it, so I don't
have much more detail :(

Dustin

--
Storage Software Engineer
http://www.zmanda.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: Recognizing the same objects

LightInTheBox - Buy quality products at wholesale price