|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: Abstract Methods in Mooseby crashtest (Curate) |
| on Dec 11, 2009 at 20:17 UTC ( #812426=note: print w/ replies, xml ) | Need Help?? |
|
Hm. I believe the requires is provided by Moose::Role, and hence has the limitations outlined in the documentation. What it comes down is that while I can use a role to require a method definition directly in a class, I can't "defer" the method definition until later in the class hierarchy. That is, the following would work: but the following (which is what I'd want) wouldn't:
So I don't think roles/using requires is what I am looking for. But maybe I'm wrong - I have all of five days of experience with Moose!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||