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