RE: "Try? There is no try." -- Yoda's Exception handling syntax

2000-08-16 Thread Brust, Corwin
-Original Message- From: Barrie Slaymaker [mailto:[EMAIL PROTECTED]] >[EMAIL PROTECTED] wrote: >> >> It basically allows the programmer to "try" a certain action and see what the >> effects are going to be (i.e. handle the exception) so that some action can >> then be taken based on the r

RE: warn (was: yoda 2)

2000-08-18 Thread Brust, Corwin
Hmm this gets me thinking: -Original Message- From: Tony Olekshy [mailto:[EMAIL PROTECTED]] Or, with try/catch... sub openrecord { for (my $attempt = 0; $attempt < 5; ++$attempt) { my $fileName = &GetRecordFileName; try { open REC, $fileName; }

RE: Draft 1 of RFC 88 version 2.

2000-08-18 Thread Brust, Corwin
-Original Message- From: Peter Scott [mailto:[EMAIL PROTECTED]] or even the cooler throw Exception::MyDB "ABC.1234" => "Some message about what went wrong" O! I like that! I guess I might come to love C after all. I think it would be best to supply a reference. This

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 th

RE: RFC 88: Possible problem with shared lexical scope.

2000-08-22 Thread Brust, Corwin
[snip] -Original Message- From: Chaim Frenkel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 22, 2000 12:43 AM To: Tony Olekshy Cc: [EMAIL PROTECTED] Subject: Re: RFC 88: Possible problem with shared lexical scope. Could you tell me why you would want two finallys? Why not put them i

RE: On the case for exception-based error handling.

2000-08-22 Thread Brust, Corwin
[snip] -Original Message- From: Markus Peter [mailto:[EMAIL PROTECTED]] Another way to achieve the same result would be to NOT get rid of the try part of try/catch and then try automatically implies use fatal for that block... -- Markus Peter [EMAIL PROTECTED] [/snip] So that was:

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 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 supposed to spend the r

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 operate on $@ by default