On Thu, Oct 6, 2016 at 1:48 PM, Brandon Allbery via RT < perl6-bugs-follo...@perl.org> wrote:
> I believe this is known. and it's difficult to fix: you simply can't map > exceptions across languages, so an exception in a Perl callback from a C > function called from Perl can only be caught in the context of the callback > itself. C has no clue about the exception, so you can neither catch it in C > Actually, now that I think about it, there is something that can be done; not ideal, but the best we could do under the circumstances. Callbacks should be given default exception handlers that at minimum output the original exception (which currently is being lost when finding the exception handler fails) and say they're aborting because there's no way to pass the exception back through C to the outer Perl scope. Something like: Exception in Perl callback cannot be passed back through native code. All we can do is die. Sorry. Unhandled exception: (actual thrown exception here) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net