On Mon, Dec 07, 2009 at 04:20:52PM -0800, Yuri Shtil wrote: > Hi All, > > I just upgraded Moose, got Moose::Meta::Attribute Version 0.89 and got > this from the code that worked fine with Moose::Meta::Attribute V 0.74: > > You are overwriting a locally defined method (Name) with an accessor at > c:/perl/site/lib/Moose/Meta/Attribute.pm line 589 > > Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attribute=HASH(0x35cf1e4)', > > 'accessor', 'Name', undef) called at c:/perl/site/lib/Class/MOP/Att > ribute.pm line 405 > > What's wrong with having an attribute Name?
The warning tells you - you already have a method called 'Name' in your class, and the accessor for the attribute called 'Name' will be overwriting it (making it useless). -doy