Front page | perl.perl6.language |
Postings from May 2005
From: Mark Reed
May 25, 2005 11:09
Message ID: BEBA3789.firstname.lastname@example.org
On 2005-05-25 13:54, "Juerd" <email@example.com> wrote:
>> 3. If you assign that to an array via something like @a = [1,2,3], I would
>> expect at least a warning and possibly a compile-time error.
>> If it does work, it probably gets translated into @a = ([1,2,3]), which
> That's not a translation. Parens, when not postfix, serve only one
> purpose: group to defeat precedence. $foo and ($foo) are always the same
> thing, regardless of the $foo.
So, you could then do this to make an array of size 3 in Perl6?
@a = 1,2,3;