Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2016-10-22 02:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.