Larry wrote:
> 
> [EMAIL PROTECTED] writes:
> : On 4/3/02 6:44 PM, Damian Conway wrote:
> : > Larry has said very clearly that in Perl 6 there are no "magical" lexical
> : > scopes.
> :
> : Shouldn't this be: "Larry has said very clearly that in Perl 6 there is only
> : one 'magical' lexical scope: sub() or ->"
> 
> It's specifically exempted because it's declaring formal parameters.
> You have to be able to declare formal parameters outside the actual
> scope or you can't have separate declarations and definitions.

And this is the same in just about every reasonable language.

Another way of thinking about it is to say: A C<my> variable is always
scoped to the block in which it's declared.

(Parameters are then exempt because they have no C<my>).

Damian

Reply via email to