![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: attribute collisions ín Mooseby eric256 (Parson) |
on Apr 14, 2009 at 14:07 UTC ( #757396=note: print w/replies, xml ) | Need Help?? |
I think you must have meant "Bubba->new->abba" produces the error. The below code works as I expect it to, printing 2 then your error, then 1.
This makes sense to me because if i have code that is using a Hubba, and I make a Bubba, then that same code should be able to use the Bubba as if it is a Hubba, which means the interface shouldn't change. i.e. hubba is always an Int as the base clase says it should be. ___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|