On Thu, Oct 6, 2016 at 1:39 PM, Itsuki Toyota <perl6-bugs-follo...@perl.org> wrote:
> In the following example, ` my &ook = sub (Int $piyo) ` has wrong > signature (` my &ook = sub (Int $piyo, Num $fuga) ` is a right one)and > it returns the error message of "Internal error: Unwound entire stack and > missed handler". > Honestly to say, it doesn't seem to make sense to me and I can't imagine > what to do. > 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 nor have C relay it to the original Perl context. The error is, not very clearly (or rather, saying it clearly but in terms of internals), saying this: it can't find an exception handler in the callback's Perl context (and, implicitly, it can never reach one outside of the callback's context). Distilling this down to a short error message is a bit difficult. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net