Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: When to (and not to) use sv_2mortal()

by davido (Archbishop)
on Oct 29, 2011 at 00:18 UTC ( #934538=note: print w/ replies, xml ) Need Help??


in reply to Re: When to (and not to) use sv_2mortal()
in thread When to (and not to) use sv_2mortal()

I gather you've already discovered that the Inline::C stack macros are, by themselves, usually incapable of dealing with callbacks.

Yes... that's sort of how I got here. I was imagining a situation where I would bury a Perl callback into a C function, either as an iterator or as an actor. Of course it sort of defeats the purpose of inlining C if you're suddenly burying a Perl sub-based iterator into it. But it seemed like higher-order-kinky fun. However a callback as an action could be useful.


Dave


Comment on Re^2: When to (and not to) use sv_2mortal()

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-09-01 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (6 votes), past polls