On Sun, 20 Aug 2000, Tony Olekshy wrote:

> Shared:
> 
>     try { my $p = P->new; my $q = Q->new; ... }
>     finally { $p and $p->Done; }
>     finally { $q and $q->Done; }
> 
> If P->new throws, then the second finally is going to test
> $q, but it's not "in scope" yet (its my hasn't been seen).
> Or is it?  If it isn't, I'll take shared lexical scoping out
> and put a note about this in ISSUES instead of the current:

This is not an issue (at least if my works in Perl 6 as it does in Perl
5).  The scoping is determined at compile time so $q will be in scope
after this chunk is parsed.  At run time it may or may not get something
assigned to it but your code already checks that.

-dave


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

Reply via email to