http://www.perlmonks.org?node_id=1004420


in reply to xs modifying passed value

Thanks for the thoughts, ideas and suggestions...

The C++ lib is what it is for it's purpose and the reasons are beyond Perl ... The goal is to fit Perl to it, not it to Perl!

If it was absolutely impossible (or a horrendous mess to do so), then a lib change could/would be made unless (highly unlikely) it adversely affected the Lib's purpose.

However, I do not believe in "impossible"! ... If there is a will, there is a way!

So with the lack of suggestions on the latest xs code I'll assume it's good to go and stick a fork in it, call it done!

Thanks to all

-Enjoy
fh : )_~

Replies are listed 'Best First'.
Re^2: xs modifying passed value
by bulk88 (Priest) on Nov 18, 2012 at 22:50 UTC
    I thought of something. For
    croak("Usage: MyLib->strToInt(...)");
    do
    croak("Usage: MyLib->strToInt([passfail])");
    square brackets mean optional arg. "..." means 0 to infinity additional args which is not your case. Some people refuse to RTFM and demand that the usage croaks be the only thing they need to look at to call the func/sub/meth.
      Ok, I'm laughing!

      Not at you ... About your description of ME!
      "Some people refuse to RTFM and demand that the usage croaks be the only thing they need to look at to call the func/sub/meth."

      That's me!

      Also over the Anal Perfectionism.

      That would also be me!

      Thanks

      -Enjoy
      fh : )_~