Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Comprehension assigned to capture variable is Nil #3625

Closed
p6rt opened this issue Dec 27, 2014 · 4 comments
Closed

List Comprehension assigned to capture variable is Nil #3625

p6rt opened this issue Dec 27, 2014 · 4 comments
Labels
JVM Related to Rakudo-JVM testcommitted

Comments

@p6rt
Copy link

p6rt commented Dec 27, 2014

Migrated from rt.perl.org#123506 (status was 'resolved')

Searchable as RT123506$

@p6rt
Copy link
Author

p6rt commented Dec 27, 2014

From @moritz

With rakudo-jvm 2014.12​:

$ perl6-j -e 'my \T = ($_ for ^1); say T'
Nil
$

Compare this with

$ perl6-j -e 'say ($_ for ^2)'
0 1

and

$ perl6-m -e 'my \T = ($_ for ^2); say T'
0 1

This breaks Digest​::MD5.

@p6rt
Copy link
Author

p6rt commented Oct 30, 2016

From @usev6

This works now as expected​:

$ ./perl6-j -e 'my \T = ($_ for ^1); say T'
(0)

§ ./perl6-j -e 'my \T = ($_ for ^2); say T'
(0 1)

$ ./perl6-j -e 'say ($_ for ^2)'
(0 1)

I added two tests to S04-statements/for.t with commit Raku/roast@fc9a4a8523

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 30, 2016

From @usev6

This works now as expected​:

$ ./perl6-j -e 'my \T = ($_ for ^1); say T'
(0)

§ ./perl6-j -e 'my \T = ($_ for ^2); say T'
(0 1)

$ ./perl6-j -e 'say ($_ for ^2)'
(0 1)

I added two tests to S04-statements/for.t with commit Raku/roast@fc9a4a8523

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Oct 30, 2016

@usev6 - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Oct 30, 2016
@p6rt p6rt added JVM Related to Rakudo-JVM testcommitted labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM testcommitted
Projects
None yet
Development

No branches or pull requests

1 participant