Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^7: XS: EXTEND/mPUSHi

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


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

The wrapper sub knows (or can find out) how many values were passed on the stack. For fixed-length argument lists (no ellipses), it could clean up the stack before calling the I::C sub.

I concur. I came to the same conclusion.

and then use that to determine how many (if any) values have been pushed onto the stack during the call, thereby removing the need for the I::C programmer to do this manually.

I'm guessing "do this" means "calling PUTBACK". If so, sweet. I hadn't looked that far.


Comment on Re^7: XS: EXTEND/mPUSHi

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-10-23 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls