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:
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
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