I recently took over maintenance for MooseX-Meta-Attribute-Lvalue, and have renamed the distribution MooseX-LvalueAttribute.
The latest versions use Variable::Magic to ensure that type constraints, coercions, triggers, etc, *do* get called in lvalue context.
1 out of 1 found this review helpful. Was this review helpful to you? Yes No
This is a bad idea, because the only way to actually make lvalue accessors work correctly would be to use a tied scalar when used in lvalue context. Otherwise no guarantees about the type constraint or storage is made, breaking the assumptions that you can make with a normal Moose class.
2 out of 3 found this review helpful. Was this review helpful to you? Yes No