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


by ikegami (Pope)
on Sep 27, 2011 at 07:43 UTC( #928038=note: print w/replies, xml ) Need Help??

in reply to Re^8: XS: EXTEND/mPUSHi
in thread XS: EXTEND/mPUSHi

The doing it twice is not a problem. Compilers will just get rid of the dead code. There's unreachable code every time you end an XS function using XSRETURN and the likes. That can't be that rare (especially XSRETURN_YES to return true), and it's got nothing to do with Inline::C.

If you had look at the .xs instead of the .c, you can't even tell there's duplication.

The problem is that Inline::C differs from XS. In XS, one doesn't call PUTBACK. In Inline::C, one must. In XS, the args are poped for you. In Inline::C, one must do so. Is this documented? Don't know. But even if it is, it's confusing and error prone.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928038]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2016-08-30 13:15 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (418 votes). Check out past polls.