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

Named enums don't have an .enums method returning an EnumMap, but are themselves an EnumMap in Rakudo #1779

Closed
p6rt opened this issue May 23, 2010 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 23, 2010

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

Searchable as RT75296$

@p6rt
Copy link
Author

p6rt commented May 23, 2010

From @masak

<isBEKaml> we don't have real enum types yet?
<masak> they're not up to spec, no.
<masak> rakudo​: enum A <a b c>; say A.enums.WHAT
<p6eval> rakudo eb84e9​: OUTPUT«Method 'enums' not found for invocant
of class 'EnumMap' [...]
<masak> rakudo​: enum A <a b c>; say A.WHAT
<p6eval> rakudo eb84e9​: OUTPUT«EnumMap()␤»
<masak> I'm pretty sure that's wrong.
* masak submits a rakudobug

S12​: "The C<.enums> method returns an C<EnumMap>" -- implying that the
enum itself is not of this type, but that it wraps an EnumMap.

@p6rt
Copy link
Author

p6rt commented Jul 23, 2010

From @masak

On Sun May 23 08​:18​:24 2010, masak wrote​:

<isBEKaml> we don't have real enum types yet?
<masak> they're not up to spec, no.
<masak> rakudo​: enum A <a b c>; say A.enums.WHAT
<p6eval> rakudo eb84e9​: OUTPUT«Method 'enums' not found for invocant
of class 'EnumMap' [...]
<masak> rakudo​: enum A <a b c>; say A.WHAT
<p6eval> rakudo eb84e9​: OUTPUT«EnumMap()␤»
<masak> I'm pretty sure that's wrong.
* masak submits a rakudobug

S12​: "The C<.enums> method returns an C<EnumMap>" -- implying that the
enum itself is not of this type, but that it wraps an EnumMap.

<masak> rakudo​: enum A <a b c>; say A.enums.WHAT
<p6eval> rakudo 937177​: OUTPUT«EnumMap()␤»
<masak> rakudo​: enum A <a b c>; say A.WHAT
<p6eval> rakudo 937177​: OUTPUT«A␤»
<masak> \o/
* masak closes ticket

@p6rt
Copy link
Author

p6rt commented Jul 23, 2010

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

@p6rt p6rt closed this as completed Jul 23, 2010
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant