在 May 21, 2007 8:45 AM 時,Juerd Waalboer 寫到:
Steffen Schwigon skribis 2007-05-21 1:28 (+0200):
That's ARRAY := ARRAY there, so the following should dwym:
my @foo := [ 1, 2, 3 ];
However, this does not work with pugs, so I don't know if I am
wrong, or
pugs is wrong.
Pugs is wrong an
Steffen Schwigon skribis 2007-05-21 1:28 (+0200):
> 1. Should assigning an arrayref to an array dereference?
No, an array in list context only flattens when it has the @ sigil, or
when it is explicitly flattened with the [] postcircumfix operator, or
the | prefix operator.
>Which Synopses de
Hi!
Yesterday we discussed a strange behaviour of .perl on the result of a
hyperoperator. The basic bug is that
my @hyp = -« ([1, 2], 3);
say @hyp.perl;
outputs
[(-1, -2), -3]
which are strange inner parens inside the brackets that would get
flattened after eval. I committed a :todo test