On Wed, 13 Jun 2012 23:13:01 -0700, masak wrote:
> <masak> r: (my @) ».=« flip
> <p6eval> rakudo 90333b: OUTPUT«===SORRY!===ResizablePMCArray: Can't
> shift from an empty array!»
Still present in:
This is Rakudo version 2017.08-104-g76f1d8970
built on MoarVM version 2017.08.1-148-g1059eed1
implementing Perl 6.c.
It addition to an error, it now also prints a bogus "useless use" warning.
➜ my @a = <ab xy>; @a »~=» '1'; dd @a;
Array @a = ["ab1", "xy1"]
➜ my @a = <ab xy>; @a ».=» flip; dd @a;
Potential difficulties:
Useless use of ».=« in sink context
at -e:1
------> my @a = <ab xy>; @a ⏏».=» flip; dd @a
===SORRY!===
Method call node requires at least one child
Here shown with the the right-facing hyper meta-op `» »`, which makes more
sense here (though all forms currently fail in the same way).
Expected result for each form, IMO:
».=»
Array @a = ["ba", "yx"]
«.=»
Array @a = ["ba", "yx"]
».=«
ERROR:
Lists on either side of non-dwimmy hyperop of .= are not of
the same length
left: 2 elements, right: 1 elements
«.=«
ERROR:
Lists on either side of non-dwimmy hyperop of .= are not of
the expected length
left: 2 elements, right: 1 elements