On 20.03.2010 00:29, Chris Prather wrote: > B) The error message Moose spits out in such a case is pretty descriptive: > > $perl -Moose -E'package Example; extends Class;' > Recursive inheritance detected in package 'Class' at > /Users/perigrin/.perlbrew/perls/current/lib/perl5/darwin-2level/Class/MOP/Class.pm > line 563.
>From a newcomer's perspective it would be more beneficial if the error message actually said something that pointed at the 'Example' package, considering the problematic piece of code is actually in the 'Example' package, not in the 'Class' package. But I don't know if it is even possible to figure out the name of the subclass which used the wrong syntax for extends when the error is actually emitted. At least the error message above is much better than nothing at all. Just ignore me if you feel that this is a non-issue. -- Robin
