Menu

#706 replace $symname in all typemap

closed-fixed
ruby (61)
5
2006-07-08
2006-07-04
No

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.

I want $symname to be replaced in all typemap.

Discussion

  • Kouhei Sutou

    Kouhei Sutou - 2006-07-04

    an implementation.

     
  • cfis

    cfis - 2006-07-05

    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?).

     
  • Kouhei Sutou

    Kouhei Sutou - 2006-07-05

    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

     
  • Kouhei Sutou

    Kouhei Sutou - 2006-07-05

    a small sample.

     
  • cfis

    cfis - 2006-07-05

    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).

     
  • William Fulton

    William Fulton - 2006-07-08
    • assigned_to: cfis --> wsfulton
    • status: open --> closed-fixed
     
  • William Fulton

    William Fulton - 2006-07-08

    Logged In: YES
    user_id=242951

    as per emails on swig-devel, this is now fixed.

     

Log in to post a comment.