Skip Menu |
Report information
Id: 131865
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [REGRESSION] Looping over a HyperSeq in sink context does nothing (for <a b c>.hyper { say 2 })
Download (untitled) / with headers
text/plain 470b
Code: for <a b c>.hyper { say 2 } Result (2015.09-2015.06): 2 2 2 Result (9b0b9effe5,2017.07,HEAD(6745517)): (no output) There seems to be nothing wrong with using a for loop on .hyper or .race, so it should work. It starts working if you somehow use the value, for example: Code: do for <a b c>.hyper { say 2 } Result (9b0b9effe5,2017.07,HEAD(6745517)): 2 2 2 Bisectable points to https://github.com/rakudo/rakudo/commit/9b0b9effe5fee1f35497cf97a5e7bda9bb083507
IRC discussion: https://irclog.perlgeek.de/perl6/2017-08-09#i_14989886

Turns out that .hyper/.race never worked reliably anyway, so this ticket is less important than it looks.

Maybe we should have a meta ticket that tracks all .hyper/.race issues. Another option would be to just close them all, but this will leave us without a good list of tests that should be written.

On 2017-08-08 18:40:48, alex.jakimenko@gmail.com wrote:
Show quoted text
> Code:
> for <a b c>.hyper { say 2 }
>
> Result (2015.09-2015.06):
> 2
> 2
> 2
>
> Result (9b0b9effe5,2017.07,HEAD(6745517)):
> (no output)
>
>
> There seems to be nothing wrong with using a for loop on .hyper or
> .race, so it should work. It starts working if you somehow use the
> value, for example:
>
> Code:
> do for <a b c>.hyper { say 2 }
>
> Result (9b0b9effe5,2017.07,HEAD(6745517)):
> 2
> 2
> 2
>
>
> Bisectable points to
> https://github.com/rakudo/rakudo/commit/9b0b9effe5fee1f35497cf97a5e7bda9bb083507




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org