in reply to Checking for required methods that were auto-generated by MooseX::AttributeHelpers
Even though it uses fancy syntax, Moose is still simple Perl code. Your code invokes Moose::has('ADJACENCIES',...), which creates get_adjacency. But as your code invokes with 'GSM::Cell::Role::BcchChecks' before it invokes the method creation, it will fail because that method does not yet exist.
I guess if Moose would first create a data structure instead of accessors, and then, upon for example, getting to the no Moose or __CLASS__->finalize() part, create everything in one go, the approach could be independent of the order of the declarations, something which I find less confusing. But as there are likely reasons for why Moose does and checks things immediately instead of requiring an explicit finalization step, this approach does not exist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking for required methods that were auto-generated by MooseX::AttributeHelpers
by stvn (Monsignor) on May 18, 2009 at 13:26 UTC |