MooseX-Meta-Attribute-Lvalue reviews

cpanratings
 

RSS | Module Info | Add a review of MooseX-Meta-Attribute-Lvalue

MooseX-Meta-Attribute-Lvalue (0.05)

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.

Toby Inkster - 2013-11-01T08:19:58 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

MooseX-Meta-Attribute-Lvalue (0.02) **

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.

יובל קוג'מן - 2008-10-24T18:18:26 (permalink)

2 out of 3 found this review helpful. Was this review helpful to you?  Yes No