> That sounds like a bug to me. But feature("ref") won't automatically
> increment the refcount on objects returned from functions other than the
> ref-counted class's constructor, so I do not use feature("ref") at all in
> my programs. I use feature("unref") but not feature("ref").
I am quite happy with feature("ref") and it works really well with any method
returning an object of type (or derived from that) RefCountObject.
Unfortunately is does not work if a class method returns that type thats class
is *not* derived from RefCountObject. For me it looks like a bug, too. Btw, I
generate Python wrappers with that.
It seems that the class hosting the %newobject method is also taken into
account while evaluating %feature("ref") and not only the return type.
Regards,
Jan
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user