In Python module, $symname is replaced in all typemap
but isn"t replaced in Ruby module.
In Ruby module, $symname is replaced only in constant
wrapper and input typemap.
Thanks for the patch. It looks good. Do you have a simple
test case you can provide also? If you can send one along,
I can check in the patch and maybe add a test case to the
Ruby test suite (maybe use synmame in a way that the method
name can be returned to ruby to check in a unit test?).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great. I'll put this into SWIG for the next release (not
sure when that is). Might take me a few days to get to it,
if that's ok (I assume you are happy with your patched
version of SWIG for now).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
an implementation.
Logged In: YES
user_id=1323508
Hi Kouhei,
Thanks for the patch. It looks good. Do you have a simple
test case you can provide also? If you can send one along,
I can check in the patch and maybe add a test case to the
Ruby test suite (maybe use synmame in a way that the method
name can be returned to ruby to check in a unit test?).
Logged In: YES
user_id=1012232
What about this sample?
Current SWIG:
% ruby -r calc -e "p Calc.add(1, 2)"
"in: add"
"argout: $symname"
3
Patched SWIG:
% ruby -r calc -e "p Calc.add(1, 2)"
"in: add"
"argout: add"
3
a small sample.
Logged In: YES
user_id=1323508
Great. I'll put this into SWIG for the next release (not
sure when that is). Might take me a few days to get to it,
if that's ok (I assume you are happy with your patched
version of SWIG for now).
Logged In: YES
user_id=242951
as per emails on swig-devel, this is now fixed.