On Mon, Apr 20, 2009 at 07:58:42AM -0700, Carl Mäsak wrote:
> <masak> rakudo: sub foo() { return class { method Str() { return "OH
> HAI" }; method Num() { return 42 } } }; say ~foo; say +foo
> <p6eval> rakudo 480902: OUTPUT«!ANON10␤Class !ANON10 already registered! [...]
> <jnthn> Ugh. Anonymous classes are...not quite so anonmous as would be good.
> <jnthn> file masakbug
> <jnthn> *rakudobug
> * masak files masakbug :)

That code looks to me as though it was attempting to define the class
twice.  Obviously it should not be doing that here -- as the class
is an 'our' class and should therefore only happen once.

Pm

Reply via email to