[perl #47966] [DOCS] pdd23 doesn't list exception;death as a standard exception

2009-07-19 Thread James Keenan via RT
On Sun Jul 19 18:27:29 2009, tene wrote: > Parrot still doesn't have a hierarchy of exception types. > exception;death doesn't exist. This is the same as rt#36261. I > recommend that both of these tickets be merged into a single TT. At Tene's suggestion, I am consolidating this ticket with one

[perl #47966] [DOCS] pdd23 doesn't list exception;death as a standard exception

2009-07-19 Thread James Keenan via RT
On Mon Dec 01 11:39:33 2008, pmichaud wrote: > > ... how exactly does one use C, C, > and the other exception types from PIR? I see them mentioned throughout > pdd23, but I've never actually seen an example of how these constants > (are they constants?) might appear in actua

Re: [perl #47966] [DOCS] pdd23 doesn't list exception;death as a standard exception

2008-12-01 Thread Patrick R. Michaud
On Mon, Dec 01, 2008 at 10:09:38AM -0800, Klaas-Jan Stol via RT wrote: > On Sun Nov 30 05:51:34 2008, kjs wrote: > > On Thu Nov 29 11:35:12 2007, pmichaud wrote: > > > In the list of "Standard Parrot Exceptions" in pdd23, there's > > > no item giv

Re: throw oddities in pdd23

2008-09-22 Thread Allison Randal
Stephen Weeks wrote: Commit 31294 implements this behavior. Can I get confirmation that it's correct? Just looked over the diff. Perfect. Thanks! Allison

Re: throw oddities in pdd23

2008-09-21 Thread Stephen Weeks
ot be passed as a separate argument to the > > handler. The change to remove the exception message string as a separate > > parameter to the handler is correct, thanks for making that. > > > > -- > > (The current text of PDD23 is accurate:) > > Active excep

Re: throw oddities in pdd23

2008-09-18 Thread Stephen Weeks
DD > weren't clear. The resume continuation should continue to live within > the exception object, not be passed as a separate argument to the > handler. The change to remove the exception message string as a separate > parameter to the handler is correct, thanks for making that. >

Re: throw oddities in pdd23

2008-09-18 Thread Allison Randal
exception object, not be passed as a separate argument to the handler. The change to remove the exception message string as a separate parameter to the handler is correct, thanks for making that. -- (The current text of PDD23 is accurate:) Active exception handlers (if any) will be invoked with

Re: throw oddities in pdd23

2008-09-18 Thread Stephen Weeks
Not long ago, Stephen Weeks proclaimed... > Not long ago, Patrick R. Michaud proclaimed... > > Personally I like the idea that "any PMC can be thrown as an > > exception", which would seem to argue against forcing resume > > continuations into the thrown PMC (which might not have a slot > > for the

Re: throw oddities in pdd23

2008-09-16 Thread Patrick R. Michaud
On Tue, Sep 16, 2008 at 10:14:24PM +0200, Allison Randal wrote: > > Okay, PDD cleaned up. The code to directly support throwing any > arbitrary type would require significant circumlocution (read: > inefficient, difficult to maintain), so it's not desirable. > [...] > But, an individual HLL ca

Re: throw oddities in pdd23

2008-09-16 Thread Allison Randal
Patrick R. Michaud wrote: PDD23:67 has: : =item B> : : Throw an exception consisting of the given I PMC. Active exception : handlers (if any) will be invoked with I as the only parameter. : : : =item B [ , I ]> : : Throw an exception consisting of the given I PMC after takin

Re: throw oddities in pdd23

2008-09-13 Thread Stephen Weeks
Not long ago, Patrick R. Michaud proclaimed... > Personally I like the idea that "any PMC can be thrown as an > exception", which would seem to argue against forcing resume > continuations into the thrown PMC (which might not have a slot > for them). So, rather than saying that anything thrown as

[perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-07 Thread Christoph Otto via RT
On Sat Sep 06 15:51:16 2008, julianalbo wrote: > Sorry, the code I poste was bad. The valid form is: > > $P1 = new ['Exception'], $P0 # create new exception object > I've changed the example code to use the more common syntax without brackets: $P1 = new 'Exception', $P0 . The code works now, s

Re: [perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-06 Thread NotFound
Sorry, the code I poste was bad. The valid form is: $P1 = new ['Exception'], $P0 # create new exception object -- Salu2

Re: [perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-06 Thread NotFound
After some brief comment on irc, applied in r30833 -- Salu2

throw oddities in pdd23

2008-09-06 Thread Patrick R. Michaud
PDD23:67 has: : =item B> : : Throw an exception consisting of the given I PMC. Active exception : handlers (if any) will be invoked with I as the only parameter. : : : =item B [ , I ]> : : Throw an exception consisting of the given I PMC after taking : a continuation at the next

pdd23 - subs as exception handlers

2008-09-06 Thread Patrick R. Michaud
PDD23:41 says : =item B> : : Push an invocable PMC -- usually a closure or, in rarer cases, a subroutine or : continuation -- onto the exception handler stack. : ... : If a I is provided, Parrot pushes the pmc which will execute : if invoked, which has the effect of unconditionally handling

Re: [perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-06 Thread NotFound
On Sat, Sep 6, 2008 at 3:34 AM, Christoph Otto via RT <[EMAIL PROTECTED]> wrote: > On Sat Feb 16 17:23:47 2008, coke wrote: >> The example in the PDD now reads: >> >> $P0 = new 'String' >> $P0 = "something bad happened" >> $P1 = new ['parrot';'exception'], $P0 # create new exception object >

[perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-06 Thread Bob Rogers
From: "Christoph Otto via RT" <[EMAIL PROTECTED]> Date: Fri, 05 Sep 2008 18:34:51 -0700 This code continues to not work. Would it be DTRT to copy/pasta some code . . . Only if it's not spaghetti code. ;-} -- Bob Rogers

[perl #48320] [BUG] Example in pdd23 doesn't work

2008-09-06 Thread Christoph Otto via RT
On Sat Feb 16 17:23:47 2008, coke wrote: > The example in the PDD now reads: > > $P0 = new 'String' > $P0 = "something bad happened" > $P1 = new ['parrot';'exception'], $P0 # create new exception object > throw $P1 # throw it > This code continues to not wo

[perl #48320] [BUG] Example in pdd23 doesn't work

2007-12-07 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #48320] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=48320 > At the bottom of pdd23 there's an example of creating and throwing an e

[perl #48150] [BUG] pdd23 doesn't document obtaining thrown exception object

2007-12-04 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #48150] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=48150 > PDD23 doesn't provide much information about how an exception handler get

[perl #47966] [BUG] pdd23 doesn't list exception;death as a standard exception

2007-11-29 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #47966] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=47966 > In the list of "Standard Parrot Exceptions" in pdd23, there's

Re: pdd23: closure vs. continuation

2006-07-01 Thread Allison Randal
Chip Salzenberg wrote: Allison, if you give me the OK, I'll recast pdd23 in the alternative way I had in mind, where: * exception handlers are closures, * the closures are called _inside_ the dynamic scope where the throw occurred, * a closure returning without executing C impli

pdd23: closure vs. continuation

2006-07-01 Thread Bob Rogers
From: Chip Salzenberg <[EMAIL PROTECTED]> Date: Fri, 30 Jun 2006 22:11:39 -0500 . . . Allison, if you give me the OK, I'll recast pdd23 in the alternative way I had in mind, where: * exception handlers are closures, * the closures are called _inside_ the dy

pdd23: closure vs. continuation

2006-06-30 Thread Chip Salzenberg
Just before I committed pdd23 as it currently is, I asked Audrey whether it was better to make handlers continuations or closures. She said it was not important, and to choose whichever is faster. However, I think I erred in choosing continuations. In the continuation model (as in pdd23 at

pdd23

2006-06-30 Thread Chip Salzenberg
I've got a complete (if not battle-tested) version of the exceptions pdd is now committed and renamed into docs/pdd. Share & Enjoy! -- Chip Salzenberg <[EMAIL PROTECTED]>