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]

Reply via email to