Re: RCF for option enhanced type constraints

2008-10-09 Thread Darren Duncan
John Napiorkowski wrote: A question about constant types. Duncan, you mentioned that the 'EqualsTo' hint would basically be making the type a constant (although they wouldn't be exactly usable as normal constants since they'd stringify to their type registry name, not their value). I've done:

Re: Bug in empty method of MooseX::AttributeHelpers::MethodProvider::List?

2008-10-09 Thread Sartak
Hi Tod, On Thu, Oct 9, 2008 at 6:39 PM, Tod Hagan <[EMAIL PROTECTED]> wrote: > All, > > Shouldn't > >sub empty : method { >my ($attr, $reader, $writer) = @_; >return sub { >scalar @{$reader->($_[0])} ? 1 : 0 >}; >} > > instead say

Bug in empty method of MooseX::AttributeHelpers::MethodProvider::List?

2008-10-09 Thread Tod Hagan
All, Shouldn't sub empty : method { my ($attr, $reader, $writer) = @_; return sub { scalar @{$reader->($_[0])} ? 1 : 0 }; } instead say: scalar @{$reader->($_[0])} ? 0 : 1 Running a simple test (attached) give