The unwanted() routine needed to add an explicit sink to certain methods found
in a block-final Want node. (Method calls for dispatch:<.=> and Pair.new are
exempt, however. In the case of .=, it is 'nosink' because it's essentially
going to cause a side effect anyway, and doing it twice tends
Re-opening per TimToady's comments:
http://irclog.perlgeek.de/perl6/2016-07-21#i_12881470
The map de-lazifies when sunk, but in this case the for's sinking doesn't seem
to propagate to the map.
This, for example, prints all the values:
m: for ^3 { ^10 .map: *.say; Nil }; say 42;
--
Cheers,
I'm going to close this, since the original report was ruled as not a bug.
The lazines of such constructs has now also been documented in Traps.
--
Cheers,
ZZ | https://twitter.com/zoffix
> On 11 Apr 2016, at 15:19, Itsuki Toyota (via RT)
> wrote:
>
> # New Ticket Created by Itsuki Toyota
> # Please include the string: [perl #127879]
> # in the subject line of all future correspondence about this issue.
> #
> On 11 Apr 2016, at 15:19, Itsuki Toyota (via RT)
> wrote:
>
> # New Ticket Created by Itsuki Toyota
> # Please include the string: [perl #127879]
> # in the subject line of all future correspondence about this issue.
> #
# New Ticket Created by Itsuki Toyota
# Please include the string: [perl #127879]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=127879 >
See the following results.
$ echo "h o g e" | perl6 -e 'for $*IN.lines -> $line {