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

bogus hash vs. block distinction. #1659

Closed
p6rt opened this issue Apr 4, 2010 · 6 comments
Closed

bogus hash vs. block distinction. #1659

p6rt opened this issue Apr 4, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Apr 4, 2010

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

Searchable as RT74050$

@p6rt
Copy link
Author

p6rt commented Apr 4, 2010

From @finanalyst

finanalyst​: perl6​: my @​v=2,5; say ( map {; $^b => $^a }, @​v ).perl
p6eval​: rakudo 32fda1​: OUTPUT«Lexical '$b' not found␤current instr.​:
'_block14' pc 29 (EVAL_1​:0)␤»
p6eval​: ..elf 30299​: OUTPUT«Undefined subroutine &GLOBAL​::map called at
(eval 124) line 4.␤ at ./elf_h line 5881␤»
p6eval​: ..pugs​: OUTPUT«((\5 => \2),)␤»
finanalyst​: alpha​: my @​v=2,5; say ( map {; $^b => $^a }, @​v ).perl
p6eval​: alpha 30e0ed​: OUTPUT«[5 => 2]␤»

@p6rt
Copy link
Author

p6rt commented Apr 22, 2010

From @moritz

21​:24 <@​moritz_> rakudo​: say ({; $_ => 1}).WHAT
21​:24 <+p6eval> rakudo 43f110​: OUTPUT«Hash()␤»
21​:25 <@​moritz_> looks like a bug to me
21​:25 <@​colomon> yup.

I'd expect Block instead

@p6rt
Copy link
Author

p6rt commented May 30, 2010

From @moritz

Although it looks like a bug with twigils, it's actually a bug in the
hash vs. block distinction algorithm. Despite the leading ';' rakudo
interprets the construct as a hash.

@p6rt
Copy link
Author

p6rt commented May 30, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 6, 2010

From @pmichaud

Now fixed in 06723b4... assigning to moritz++ for test verification and
unfudging.

Pm

@p6rt
Copy link
Author

p6rt commented Jun 7, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 7, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant