From: SourceForge.net <no...@so...> - 2007-01-20 04:46:41
|
Bugs item #1640042, was opened at 2007-01-19 22:46 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1640042&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: ruby Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Lyle Johnson (lyle) Assigned to: cfis (cfis) Summary: SWIG generates incorrect code for functions in %extend Initial Comment: When you extend a class with a function declaration that includes default values for some arguments, SWIG 1.3.31 generates code as if this function is an overloaded function. Furthermore, one of the overloads is defined incorrectly, so the resulting wrapper code won't compile properly. I'm filing this as a Ruby bug since that's where I'm seeing it, but it may be a more general code generation bug instead. A simple interface file that demonstrates the bug appears at the end of this message (it's also attached). %module example class Foo { }; %extend Foo { void init(int a, int b=2); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1640042&group_id=1645 |