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

Enum keys are spookily cloned from the last named enum to be defined to all other defined enums in Rakudo #2182

Closed
p6rt opened this issue Sep 22, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 22, 2010

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

Searchable as RT77982$

@p6rt
Copy link
Author

p6rt commented Sep 22, 2010

From @moritz

12​:55 < nymacro> rakudo​: enum A <1 2 3>; enum B <a b c>; say
A.enums.keys; say B.enums.keys;
12​:55 <+p6eval> rakudo 750a024​: OUTPUT«abc␤abc␤»
12​:55 < nymacro> I'm guessing enums are completely screwed at the moment :/
13​:39 < moritz_> oh ouch
13​:40 * moritz_ submits rakudobug

@p6rt
Copy link
Author

p6rt commented Oct 14, 2011

From @coke

On Wed Sep 22 04​:41​:18 2010, moritz wrote​:

12​:55 < nymacro> rakudo​: enum A <1 2 3>; enum B <a b c>; say
A.enums.keys; say B.enums.keys;
12​:55 <+p6eval> rakudo 750a024​: OUTPUT«abc␤abc␤»
12​:55 < nymacro> I'm guessing enums are completely screwed at the
moment :/
13​:39 < moritz_> oh ouch
13​:40 * moritz_ submits rakudobug

Much happier these days​:

15​:17 < [Coke]> rakudo​: enum A <1 2 3>; enum B <a b c>; say
A.enums.keys; say
  B.enums.keys;
15​:17 <+p6eval> rakudo ce15be​: OUTPUT«1 2 3␤a b c␤»

Closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 14, 2011

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

@p6rt
Copy link
Author

p6rt commented Jan 30, 2012

From @moritz

tested in S12-enums/basic.t

@p6rt
Copy link
Author

p6rt commented Jan 30, 2012

@moritz - Status changed from 'open' 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