From: SourceForge.net <no...@so...> - 2011-02-05 10:59:00
|
Bugs item #3086615, was opened at 2010-10-13 12:04 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3086615&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: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: Volker Grabsch (vog) >Assigned to: William Fulton (wsfulton) Summary: Strange behaviour on method names containing underscores (_) Initial Comment: I have a class which contains a method whose name is "somethingCool_Fast". The generated Ruby interface, however, doesn't have a method named "somethingCool_Fast". Instead, the method name is "somethingFast" there, i.e. the part "Cool_" of the name is missing. This issue appears in SWIG-2.0.0 as well as SWIG-2.0.1. ---------------------------------------------------------------------- >Comment By: William Fulton (wsfulton) Date: 2011-02-05 10:59 Message: I tried this: %module example %inline %{ class Tst { public: int somethingCool_Fast(int i) { return i*2; } }; %} require 'example' c = Example::Tst.new() print "result = ", c.somethingCool_Fast(22), "\n" which works as expected. Probably you have something else in your code changing the name... a macro or %rename perhaps? Closing, please open if you can recreate with an example. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3086615&group_id=1645 |