From: John Whitley <jwhitley@ta...> - 2008-12-24 00:48:32
This is just a note to call out a patch I've submitted on Sourceforge
for a bug in SWIG 1.3.36 with the Ruby multiple inheritance support (the
-minherit flag to swig). This was introduced sometime after 1.3.31, and
causes the module to fail on load in the module's Init_... function due
to a line such as:
rb_define_alias(cFooVector.klass, "delete_if", "reject!");
being called before the implementation module has been included on
Note that the "reject!" method was defined on cFooVector.mImpl, so the
alias definition will fail in the current SWIG code because "reject!" is
not yet defined on cFooVector.klass.
The patch changes the emitter to write the rb_include_module() call out
immediately after the class definition.
-- John Whitley