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

Can't use bare 'not' as hash key in Rakudo (but works in STD.pm6) #3571

Closed
p6rt opened this issue Oct 29, 2014 · 4 comments
Closed

Can't use bare 'not' as hash key in Rakudo (but works in STD.pm6) #3571

p6rt opened this issue Oct 29, 2014 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Oct 29, 2014

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

Searchable as RT123084$

@p6rt
Copy link
Author

p6rt commented Oct 29, 2014

From @masak

<masak> std​: my %h = not => 42;
<camelia> std 14ad63b​: OUTPUT«ok 00​:00 137m␤»
<masak> m​: my %h = not => 42;
<camelia> rakudo-moar 315ec6​: OUTPUT«===SORRY!=== Error while
compiling /tmp/uZK1u3tWdg␤Malformed initializer␤at
/tmp/uZK1u3tWdg​:1␤------> my %h = not ⏏=> 42; [...]
* masak submits rakudobug
<masak> m​: my %h = 'not' => 42; # workaround
<camelia> rakudo-moar 315ec6​: ( no output )

@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

From @usev6

This works now​:

$ perl6 -e 'my %h = not => 42; say %h.perl'
("not" => 42).hash

I added a test to S02-types/hash.t with commit Raku/roast@83da5c2c81

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

From @usev6

This works now​:

$ perl6 -e 'my %h = not => 42; say %h.perl'
("not" => 42).hash

I added a test to S02-types/hash.t with commit Raku/roast@83da5c2c81

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Mar 2, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant