[perl #48150] [DOCS] pdd23 doesn't document obtaining thrown exception object
Klaas-Jan Stol via RT
parrotbug-followup at parrotcode.org
Sun Nov 30 14:26:58 UTC 2008
On Tue Dec 04 22:24:22 2007, pmichaud wrote:
> PDD23 doesn't provide much information about how an exception
> handler gets access to the thrown exception object itself.
>
> For exception handlers that are subs, I suspect the exception
> is one of the arguments to the sub. If so, this should be
> made explicit.
>
> For exception handlers that are label targets within subs,
> I'm not sure what the "official" mechanism is. Many programs
> in the repository seem to use a ".get_results" PIR directive,
> which isn't documented in pdd23 or in the draft pdd19.
>
> Pm
.get_results is documented in PDD19; PDD23 has a section about the
different attributes of the exception object.
It's not yet possible to have a .sub as an exception handler. I propose
to close this ticket, because 'obtaining' the exception object is now
documented. Once having a .sub as an EH, then documentation should be
added at that point (or a new ticket should be opened).
Comments?
thanks!
kjs
More information about the parrot-dev
mailing list