Re: Towards a reasonable unwinding flow-control semantics.
[email protected] (Chaim Frenkel) 16 Aug 2000 19:10:22 -0400
| Newsgroups | perl.perl6.language.errors |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "PS" == Peter Scott <[email protected]> writes: PS> 1. When an exception is thrown perl looks for the enclosing try block; if PS> there is none then program death ensues. Err, if there isn't one. Don't throw the exception. Stop processing but don't throw. You are imposing a style on your caller. A message would be appropriate (ala, die or warn) Also a use (within main or if it can work lexically) that would mean die_if_exception_thrown. Would treat the main routine as if it were wrapped in a try block that doesn't catch any exceptions. <chaim> -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183