Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 browsing the Monastery: (3)
As of 2014-09-19 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls