Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I originally had it as "$passfail" (and just tried again), then reading up led me to passing by reference and led to that.
I've been hacking/reading on this for a few hours now ... So I've tried a few different angles, Apparently all wrong!

I'm swimming in all this Sv SV PV Pv Rv RV blah blah ... :(

Simple is my pleasure, I'll complicate it as my mind expands, hopefully before it explodes!

Just noticed I forgot the proto for mylib strToInt in my OP, Here it is:
int strToInt(bool *ok) const;

I do have stepping capabilities on each side of the fence, Perl and C, Just not across.
Qt Creator w/dbg on the C/C++ side and of course Perldbg on the Perl side.
I have many times ran them together to see both sides of the fence, nothing jumps out at me other then the passed value between Perl and XS doesn't get modified, Between XS and my Lib does as shown by the printf(...)'s in the XS.

I do have many other functions that work fine, though none of them require a passed argument modification and were for the most part simple. (looking back :))

Shoot, I figured out without asking for help how to do the new() that has variable arguments as well as several different argument types and got it all to work, so far perf!, but this stupid modified passed argument has me stumped. Arrrrgggg!


fh : )_~

In reply to Re^2: xs modifying passed value by Festus Hagen
in thread xs modifying passed value by Festus Hagen

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (10)
    As of 2015-12-01 15:21 GMT
    Find Nodes?
      Voting Booth?

      My keyboard shows this many letters:

      Results (13 votes), past polls