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

Rakudo dies on range of enum values #702

Closed
p6rt opened this issue Feb 16, 2009 · 5 comments
Closed

Rakudo dies on range of enum values #702

p6rt opened this issue Feb 16, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 16, 2009

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

Searchable as RT63250$

@p6rt
Copy link
Author

p6rt commented Feb 16, 2009

From @masak

It's Rakudo c4f0f9, and the following error occurs​:

$ perl6 -e 'enum A <b c>; b..c'
Multiple Dispatch​: No suitable candidate found for 'cmp', with signature 'PP->I'
[...]

Though I haven't confirmed with the synopses, I'd expect a range of
enum values to work. By the way, writing the range 'A​::b..A​::c' gives
the same result.

bacek++ for discovering this.

@p6rt
Copy link
Author

p6rt commented May 1, 2009

From @jnthn

On Mon Feb 16 02​:17​:11 2009, masak wrote​:

It's Rakudo c4f0f9, and the following error occurs​:

$ perl6 -e 'enum A <b c>; b..c'
Multiple Dispatch​: No suitable candidate found for 'cmp', with
signature 'PP->I'
[...]

Though I haven't confirmed with the synopses, I'd expect a range of
enum values to work. By the way, writing the range 'A​::b..A​::c' gives
the same result.

After today's enum refactor​:

enum A <b c>; b..c
say (b..c).from
0
say (b..c).to
1

Assigning ticket to moritz++ for spectests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 1, 2009

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

@p6rt
Copy link
Author

p6rt commented May 3, 2009

From @moritz

Now tested in S12-enums/basic.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented May 3, 2009

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

@p6rt p6rt closed this as completed May 3, 2009
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