Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 scrutinizing the Monastery: (8)
As of 2015-07-04 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls