Re: Exception stack: let's use the @@ list.

2000-08-23 Thread Tony Olekshy
Peter Scott wrote: > > At 10:13 AM 8/23/00 -0600, Tony Olekshy wrote: > > >Making throw a method of Exception just means we don't have to say > > > > throw Exception->new("Can't foo.", tag => "ABC.1234", ...); > > > >and it means throw isn't a new keyword, and that throw $@ can, > >invoked now

Re: Exception stack: let's use the @@ list.

2000-08-23 Thread Peter Scott
At 10:13 AM 8/23/00 -0600, Tony Olekshy wrote: >Making throw a method of Exception just means we don't have to say > > throw Exception->new("Can't foo.", tag => "ABC.1234", ...); > >and it means throw isn't a new keyword, and that throw $@ can, >invoked now as an instance method rather than a

Re: Exception stack: let's use the @@ list.

2000-08-23 Thread Tony Olekshy
"Brust, Corwin" wrote: > > Tony Olekshy wrote: > > > > Throw can't take no arguments because it's a constructor > > If $@ always contains an exceptions we don't need to construct one to > throw. Um, but, $@ doesn't contain an exception until you throw an exception. You still have to construct a

RE: Exception stack: let's use the @@ list.

2000-08-23 Thread Brust, Corwin
-Original Message- From: Tony Olekshy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 22, 2000 8:26 PM To: [EMAIL PROTECTED] Subject: Re: Exception stack: let's use the @@ list. > Ok, uncle. Thanks. Hey, when your right... > I think C was already going to opera

Re: Exception stack: let's use the @@ list.

2000-08-22 Thread Peter Scott
Gads, people, I can barely go to the bathroom without getting behind on this discussion, let alone head out for a few hours to pick up a new laptop :-) I'll try to catch up. At 07:25 PM 8/22/00 -0600, Tony Olekshy wrote: >Throw can't take no arguments because its a constructor, not a function.

Re: Exception stack: let's use the @@ list.

2000-08-22 Thread Tony Olekshy
"Brust, Corwin" wrote: > > > From: Tony Olekshy [mailto:[EMAIL PROTECTED]] > > > > That's well and good, but the source code syntax says it's a block, > > not a sub. Am I supposed to spend the rest of my life asking myself, > > "Wait, is this one of Corwin's special blocks?" ;-) > > > > I thin

RE: Exception stack: let's use the @@ list.

2000-08-22 Thread Brust, Corwin
-Original Message- From: Tony Olekshy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 22, 2000 6:27 PM To: [EMAIL PROTECTED] Subject: Re: Exception stack: let's use the @@ list. That's well and good, but the source code syntax says it's a block, not a sub. Am I suppos

Re: Exception stack: let's use the @@ list.

2000-08-22 Thread Tony Olekshy
"Brust, Corwin" wrote: > > Tony Olekshy wrote: > > > > Consider this case: > > > > catch $@->{severity} eq "Fatal" => { ... } > > > > Are you proposing to make @_ the exception stack in the catch > > expressions too, as is: > > nope, just B C. > > catch grep $@->isa($_), qw( list_o_clas

RE: Exception stack: let's use the @@ list.

2000-08-22 Thread Brust, Corwin
# # -Original Message- # # From: Tony Olekshy [mailto:[EMAIL PROTECTED]] # # Sent: Tuesday, August 22, 2000 4:01 PM # # To: [EMAIL PROTECTED] # # Subject: Re: Exception stack: let's use the @@ list. # # Peter Scott wrote: # # > # # > Brust, Corwin wrote: # # > > # #

Re: Exception stack: let's use the @@ list.

2000-08-22 Thread Tony Olekshy
Peter Scott wrote: > > Brust, Corwin wrote: > > > > I've come to like @_ as our input list and think that > > exception handling blocks would naturaly use this. > > > > Also it seems convienent, which seems perlish. > > I find myself indifferent on the subject of where the exception > stack is sto

RE: Exception stack: let's use the @@ list.

2000-08-22 Thread Peter Scott
At 11:52 AM 8/21/00 -0500, Brust, Corwin wrote: >I've come >to like @_ as our input list and think that exception handling blocks would >naturaly use this. > >Also it seems convienent, which seems perlish. > >Hmmm... > > for (@plays) { > $qb->pass; > warn &&

RE: Exception stack: let's use the @@ list.

2000-08-21 Thread Brust, Corwin
-Original Message- From: Tony Olekshy [mailto:[EMAIL PROTECTED]] So, now you can say: catch grep { $_->isa("Foo") } @@ { ... } Ok, I think I could learn that. "Brust, Corwin" wrote: > > In the context of a catch block, if could @_ contain the > exception stack, starting with

Exception stack: let's use the @@ list.

2000-08-18 Thread Tony Olekshy
I'm rejigging RFC 88 so that not only does $@ refer to the current exception, but @@ refers to the exception stack. This moves all the link handling stuff (such as link and any) out of the Exception class and into the handling mechanism itself. So, now you can say: catch grep { $_->isa