PDD23:41 says
: =item B<push_eh I<INVOCABLE_PMC>>
:
: Push an invocable PMC -- usually a closure or, in rarer cases, a subroutine or
: continuation -- onto the exception handler stack.
: ...
: If a I<INVOCABLE_PMC> is provided, Parrot pushes the pmc which will execute
: if invoked, which has the effect of unconditionally handling all errors,
: replacing the stack with that execution context of the invocable pmc.
1. Can someone create or point me to a working example that uses
this form of exception handler (i.e., with an invocable pmc
instead of a label as the target of push_eh)? The variations I've
tried all seem to result in segfaults.
2. The phrase "...pushes the pmc which will execute if invoked..."
sounds very odd to me. I think it should be something like
"...pushes a pmc to be invoked as an exception handler..."
Pm