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

LTA error message when providing a non-recognized seed to the sequence operator in Rakudo #2465

Closed
p6rt opened this issue Sep 8, 2011 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 8, 2011

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

Searchable as RT98678$

@p6rt
Copy link
Author

p6rt commented Sep 8, 2011

From @masak

<masak> rakudo​: .say for 1, 2, 4 ... 256
<p6eval> rakudo fc57d1​: OUTPUT«1␤2␤4␤8␤16␤32␤64␤128␤256␤»
<cotto> rakudo​: .say for 1, 2, 6 ... 33.4
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted Routine [...]
<JimmyZ> rakudo​: .say for 1, 2, 11 ... 256
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted Routine [...]
<cotto> lulz
* masak submits rakudobug
<masak> cotto++

Surely there could be a more informative/pertinent error message than
"exhausted Routine" in this case? :-) We all know calculating
sequences is very tiring, but...

@p6rt
Copy link
Author

p6rt commented Sep 8, 2011

From @masak

On Thu Sep 08 00​:35​:23 2011, masak wrote​:

<masak> rakudo​: .say for 1, 2, 4 ... 256
<p6eval> rakudo fc57d1​: OUTPUT«1␤2␤4␤8␤16␤32␤64␤128␤256␤»
<cotto> rakudo​: .say for 1, 2, 6 ... 33.4
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted
Routine [...]
<JimmyZ> rakudo​: .say for 1, 2, 11 ... 256
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted
Routine [...]
<cotto> lulz
* masak submits rakudobug
<masak> cotto++

Surely there could be a more informative/pertinent error message than
"exhausted Routine" in this case? :-) We all know calculating
sequences is very tiring, but...

<pmichaud> I wonder if RT 98678 is a problem with return/fail inside of
a gather.
<pmichaud> rakudo​: sub xyz() { gather { take 1; return 2; take 3; } };
say xyz();
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted Routine
[...]
<masak> so... exhausting!
<pmichaud> rakudo​: sub xyz() { gather { take 1; fail 2; take 3; } };
say xyz();
<p6eval> rakudo fc57d1​: OUTPUT«Attempt to return from exhausted Routine
[...]
<pmichaud> yup, that's the problem.
* masak adds this to the ticket

@p6rt
Copy link
Author

p6rt commented Sep 8, 2011

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

@p6rt
Copy link
Author

p6rt commented Sep 9, 2011

From @pmichaud

Now fixed in (nom) 5d26134. Need a spectest and then we can close this
ticket.

Pm

@p6rt
Copy link
Author

p6rt commented Apr 5, 2012

From @moritz

tested in S32-exceptions/misc.t

@p6rt
Copy link
Author

p6rt commented Apr 5, 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