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

[email protected] (Dave Rolsky) Tue, 22 Aug 2000 00:56:12 -0500 (CDT)
Newsgroups perl.perl6.language.errors
Message-ID <[email protected]>
On 22 Aug 2000, Chaim Frenkel wrote:

> Could you tell me why you would want two finallys?
> 
> Why not put them into one?

> TO>     my ($p, $q);
> TO>     try { $p = P->new; $q = Q->new; ... }
> TO>     finally { $p and $p->Done; }
> TO>     finally { $q and $q->Done; }

Presumably because all finally blocks are executed before exceptions
thrown in finally blocks are propagated upwards.  That's my guess at
least.

-dave

/*==================
www.urth.org
We await the New Sun
==================*/