my $obj= MyClass->new; my $immuobj= MyClass->new;
Shouldn't that be
Anyway, this doesn't change the result. The difference between $obj->size(27) and $obj->setsize(27) is probably caused by isa => 'Int'. size is checking that argument is int, and setsize does not.my $obj= MyClass->new; my $immuobj= MyImmuClass->new;
In reply to Re: Moose immutable speedup?
by zwon
in thread Moose immutable speedup?
by jethro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |