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 experiences problems with two Whatever stars in a slice range #556

Closed
p6rt opened this issue Dec 30, 2008 · 7 comments
Closed

Rakudo experiences problems with two Whatever stars in a slice range #556

p6rt opened this issue Dec 30, 2008 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Dec 30, 2008

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

Searchable as RT61844$

@p6rt
Copy link
Author

p6rt commented Dec 30, 2008

From @masak

Rakudo r34628 dies with a strange error on a perfectly acceptable
range specification involving two stars​:

$ perl6 -e '(0,1)[*..*]'
Multiple Dispatch​: No suitable candidate found for 'cmp', with signature 'PP->I'
[...]

When it also involves a subtraction, Parrot dies of a bus error instead.

$ perl6 -e '(0,)[*-1..*]'
Bus error

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

From @bbkr

On Kiev build​:

perl6 -e '(0,1)[*..*]'

Does not crash but goes into infinite loop. I'm not sure if this can be
merged into some other ticket related to loop issue on * range.

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

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

@p6rt
Copy link
Author

p6rt commented Jan 22, 2011

From @coke

On Tue Dec 30 01​:46​:08 2008, masak wrote​:

Rakudo r34628 dies with a strange error on a perfectly acceptable
range specification involving two stars​:

$ perl6 -e '(0,1)[*..*]'
Multiple Dispatch​: No suitable candidate found for 'cmp', with
signature 'PP->I'
[...]

When it also involves a subtraction, Parrot dies of a bus error
instead.

$ perl6 -e '(0,)[*-1..*]'
Bus error

On a recent vintage rakudo, this no longer bus errors, and generates the
following output​:

(0,1)[*..*]
Method 'count' not found for invocant of class 'Failure'
(0,1)[*-1..*]
1 Any()

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 22, 2011

From @coke

On Tue Dec 30 01​:46​:08 2008, masak wrote​:

Rakudo r34628 dies with a strange error on a perfectly acceptable
range specification involving two stars​:

$ perl6 -e '(0,1)[*..*]'
Multiple Dispatch​: No suitable candidate found for 'cmp', with
signature 'PP->I'
[...]

When it also involves a subtraction, Parrot dies of a bus error
instead.

$ perl6 -e '(0,)[*-1..*]'
Bus error

On a recent vintage rakudo, this no longer bus errors, and generates the
following output​:

(0,1)[*..*]
Method 'count' not found for invocant of class 'Failure'
(0,1)[*-1..*]
1 Any()

(resent to hit list)
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

From @moritz

Now returns just 1, as I would have expected. Tested in
S02-types/whatever.t.

@p6rt
Copy link
Author

p6rt commented Oct 16, 2011

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

@p6rt p6rt closed this as completed Oct 16, 2011
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