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
In Section
Seekers of Perl Wisdom