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 c.succ gives back an integer, not a enum #2439

Closed
p6rt opened this issue Jun 13, 2011 · 4 comments
Closed

Enum c.succ gives back an integer, not a enum #2439

p6rt opened this issue Jun 13, 2011 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 13, 2011

Migrated from rt.perl.org#92742 (status was 'rejected')

Searchable as RT92742$

@p6rt
Copy link
Author

p6rt commented Jun 13, 2011

From @masak

<masak> rakudo​: enum E <a b c>; say c.succ
<p6eval> rakudo ae5bea​: OUTPUT«3␤»
<masak> er.
<masak> shouldn't the above say 'c'?
<moritz> masak​: I think so
* masak submits rakudobug
<masak> good enough for me :)

@p6rt
Copy link
Author

p6rt commented Feb 26, 2014

From @coke

On Mon Jun 13 09​:50​:03 2011, masak wrote​:

<masak> rakudo​: enum E <a b c>; say c.succ
<p6eval> rakudo ae5bea​: OUTPUT«3␤»
<masak> er.
<masak> shouldn't the above say 'c'?
<moritz> masak​: I think so
* masak submits rakudobug
<masak> good enough for me :)

behavior unchanged.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 22, 2015

From @perlpilot

On Mon Jun 13 09​:50​:03 2011, masak wrote​:

<masak> rakudo​: enum E <a b c>; say c.succ
<p6eval> rakudo ae5bea​: OUTPUT«3␤»
<masak> er.
<masak> shouldn't the above say 'c'?
<moritz> masak​: I think so
* masak submits rakudobug
<masak> good enough for me :)

S12 says "... number valued enums act just like numbers, while
string valued enums act just like strings. C<Fri.so> is true
because its value is 5 rather than 0. C<Sun.so> is false."

So, I'd expect c.succ to act just like 2.succ and this would not be a bug

--

-Scott (PerlJam/perlpilot)

@p6rt p6rt closed this as completed Sep 19, 2015
@p6rt
Copy link
Author

p6rt commented Sep 19, 2015

@perlpilot - Status changed from 'new' to 'rejected'

@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