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 trying to stringify the value of an executed for loop in Rakudo #1439

Closed
p6rt opened this issue Dec 14, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Dec 14, 2009

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

Searchable as RT71270$

@p6rt
Copy link
Author

p6rt commented Dec 14, 2009

From @masak

This be Rakudo 7ef386.

I forgot to return a Str value from my .Str method. This is what I got​:

$ perl6 -e 'class A { method Str() { for ^1 {} } }; say ~A.new'
get_string() not implemented in class 'ArrayIterator'
[...]

Would it be possible to not throw an error when this happens?

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

From @coke

On Mon Dec 14 05​:35​:49 2009, masak wrote​:

This be Rakudo 7ef386.

I forgot to return a Str value from my .Str method. This is what I
got​:

$ perl6 -e 'class A { method Str() { for ^1 {} } }; say ~A.new'
get_string() not implemented in class 'ArrayIterator'
[...]

Would it be possible to not throw an error when this happens?

Absolutely​:

09​:04 < [Coke]> rakudo​: class A { method Str() { for ^1 {} } }; say
~A.new #RT 71270
09​:04 <+p6eval> rakudo ce5cca​: OUTPUT«␤»

Closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

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

@p6rt
Copy link
Author

p6rt commented Feb 3, 2012

From @moritz

Now tested in S04-statements/for.t.

@p6rt
Copy link
Author

p6rt commented Feb 3, 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