At 12:28 PM 8/22/00 -0700, I wrote: The issue is not whether it is possible but whether it is desirable. Chaim thought that the P5 continue block scope issue was 'fixed' by Gurusamy at some point and this is almost certainly correct. Observe: >% perl5.003 -Mstrict -we 'my $x = 2; while($x--) { my $y = $x } continue { >print "y = $y\n" }' >y = 1 >y = 0 >% perl5.00503 -Mstrict -we 'my $x = 2; while($x--) { my $y = $x } continue >{ print "y = $y\n" }' >Global symbol "$y" requires explicit package name at -e line 1. >Execution of -e aborted due to compilation errors. > >So the first perl had a shared scope, but it was removed by the second >one. Clearly the shared scope is doable, but it was considered a >misfeature. I will attempt to find out why. The initial p5p estimate is that the shared scope elimination was a side effect of another change. No-one has suggested that it is a bad thing per se. -- Peter Scott Pacific Systems Design Technologies
- RFC 88: Possible problem with shared lexical scope. Tony Olekshy
- Re: RFC 88: Possible problem with shared lexical scop... Glenn Linderman
- Re: RFC 88: Possible problem with shared lexical scop... Dave Rolsky
- Re: RFC 88: Possible problem with shared lexical ... Tony Olekshy
- Re: RFC 88: Possible problem with shared lexi... Dave Rolsky
- Re: RFC 88: Possible problem with shared ... Tony Olekshy
- Re: RFC 88: Possible problem with sh... Peter Scott
- Re: RFC 88: Possible problem wit... Tony Olekshy
- Re: RFC 88: Possible problem... Peter Scott
- Re: RFC 88: Possible problem... Tony Olekshy
- Re: RFC 88: Possible problem... Peter Scott
- Re: RFC 88: Possible problem wit... Chaim Frenkel
- Re: RFC 88: Possible problem with shared lexical scop... Chaim Frenkel
- Re: RFC 88: Possible problem with shared lexical ... Dave Rolsky
- Re: RFC 88: Possible problem with shared lexi... Chaim Frenkel
- Re: RFC 88: Possible problem with shared ... Tony Olekshy
- Re: RFC 88: Possible problem with sh... Chaim Frenkel
- Re: RFC 88: Possible problem wit... Tony Olekshy
- RE: RFC 88: Possible problem with shared lexical scop... Brust, Corwin