On Tue, 20 Jul 2010, Elliot Shank wrote:

Following Dave's example in MooseX::FollowPBP, I'm attempting to update MooseX::Accessors::ReadWritePrivate. When I do this, the "before _process_options()" in MooseX::Accessors::ReadWritePrivate::Role::Attribute is not being called as if the role isn't being applied. (Moose: 1.08, Class::MOP: 1.03, perl 5.12.1)

The issue is the load order. Your old code explicitly called Moose->init_meta before applying the metaroles. The new code does not.

If you write ...

  use Moose;
  use MooseX::Accessors::ReadWritePrivate;

it should work.

This is a limitation of how Moose::Exporter works.

I think there was some discussion about this, and IIRC the conclusion was that changing this doesn't make much sense, and may lead to other breakage.


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/

Reply via email to