Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Capturing XS printf output with a tied filehandle (lots)by run4flat (Initiate) |
on Feb 17, 2012 at 15:02 UTC ( [id://954544]=note: print w/replies, xml ) | Need Help?? |
Yeah, providing functions say() and sayf() for Inline and/or XS users are probably the simplest. Not entirely trivial, but it shouldn't be much more difficult than instructing the user to retrieve a function pointer from a Perl stash and then call it with their args. As for your ideas about using threads, yes, that would certainly make life a lot easier. However, Prima is not (yet?) threadsafe. I really like Prima's internals, though, and I may help Dmitry work on it if he's interested. Thanks!
In Section
Seekers of Perl Wisdom
|
|