Front page | perl.perl6.language |
Postings from May 2005
From: Mark Reed
May 25, 2005 11:09
Message ID: BEBA3789.email@example.com
On 2005-05-25 13:54, "Juerd" <firstname.lastname@example.org> 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;