Re: Hoisting lexical declarations

2005-08-09 Thread Autrijus Tang
On Tue, Aug 09, 2005 at 12:33:48PM -0700, Larry Wall wrote: > : Alternatively, this could raise a warning and treat the second my() > : as a no-op. Personally, I'm in favour of an exception. > > I think the exception should certainly be the default, perhaps with > the other behavior pragmatically

Re: Hoisting lexical declarations

2005-08-09 Thread Larry Wall
On Mon, Aug 01, 2005 at 02:06:28AM +0800, Autrijus Tang wrote: : Pugs did not support inline variable declarations, largely because the problem : caused by this construct: : : { : say "values of β will give rise to dom!"; : $x = $x + my $x if $x; : #1 #2 #3#4 :

Hoisting lexical declarations

2005-07-31 Thread Autrijus Tang
Pugs did not support inline variable declarations, largely because the problem caused by this construct: { say "values of β will give rise to dom!"; $x = $x + my $x if $x; #1 #2 #3#4 } The evaluation order for the four $x is (#4, #2, #3, #1). However, be