On RFC 88: Serendipity while throwing a string.

2000-08-28 Thread Tony Olekshy
I have been working on the Perl 5 reference implementation of RFC 88 functionality (Try.pm, which is currently available at: http://www.avrasoft.com/perl6/try6-ref5.txt ), and I stumbled across the following result. If you are writing some code, and there is a "throw" subroutine in scope, and

Re: Structured exception handling should be a core module.

2000-08-28 Thread Peter Scott
At 10:13 AM 8/25/00 +0200, Bart Lateur wrote: You're citing my objection for merging in $@ with the rest of the error variables. $@ currently is the "eval failed" flag, irrespective of what else failed. We *must* have such a flag. If $@ and $! would be merged, $! will have to be cleared if the

Re: Structured exception handling should be a core module.

2000-08-28 Thread Peter Scott
At 01:42 AM 8/25/00 -0600, Tony Olekshy wrote: Peter Scott wrote: If $@ and $! are merged, then in code like try { system_call_that_fails(); more_stuff_that_succeeds(); } finally { } does the finally block