On Tue, Aug 15, 2000 at 08:11:55PM +0000, David L. Nicol wrote:
[ nifty tryless code snipped ]
> The reason is, this way, we don't have to keep track of, are we in
> a try or not, while running. We always are. An error happens, we
> back out of blocks until we find an appropriate catch if any. Retrying
> can be done with (failure coutners and) recursion or GOTOs.
Neato. What would this mean though?
catch Baseball { }
QuarterBack(); # throws football, what happens?
catch Football { }
Should perl recognize all catches with a block and treat them as if
they were prior to any code? I.e., the above would be:
QuarterBack();
catch Baseball { }
catch Football { }
or tryfully
try { QuarterBack(); }
catch Baseball { }
catch Football { }
> Would someone please enlighten me as to the purpose of an explicit "try."
Me too!
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
- RFC 63 (v3) Exception handling syntax Perl6 RFC Librarian
- Re: RFC 63 (v3) Exception handling syntax Chaim Frenkel
- Re: RFC 63 (v3) Exception handling syntax Peter Scott
- Re: RFC 63 (v3) Exception handling syntax Chaim Frenkel
- Re: RFC 63 (v3) Exception handling syntax Graham Barr
- Re: RFC 63 (v3) Exception handling syntax Piers Cawley
- "Try? There is no try." -- Yoda's Exce... David L. Nicol
- Re: "Try? There is no try." -- Yod... Jonathan Scott Duff
- Re: "Try? There is no try." -- Yod... Peter Scott
- Re: "Try? There is no try." --... Jonathan Scott Duff
- Re: "Try? There is no try."... Piers Cawley
- Re: "Try? There is no try." --... Dave Storrs
- Re: "Try? There is no try." -- Yod... Tony Olekshy
- Re: "Try? There is no try." -- Yod... Graham Barr
- Re: "Try? There is no try." -- Yod... Dave Storrs
- Re: RFC 63 (v3) Exception handling syntax Dave Rolsky
