projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
be439f1
)
there's no reason the suffix has to be fixed length
Jesse Luehrs [Thu, 21 Apr 2011 21:16:36 +0000 (16:16 -0500)]
lib/Moose/Meta/TypeConstraint/Enum.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/TypeConstraint/Enum.pm
b/lib/Moose/Meta/TypeConstraint/Enum.pm
index
4dfc8ce
..
2e19a57
100644
(file)
--- a/
lib/Moose/Meta/TypeConstraint/Enum.pm
+++ b/
lib/Moose/Meta/TypeConstraint/Enum.pm
@@
-26,8
+26,7
@@
my $inliner = sub {
. '&& $' . $self->_inline_var_name . '{' . $val . '}';
};
-# a quadrillion enums ought to be enough for any app
-my $var_suffix = '000000000000000000';
+my $var_suffix = 0;
sub new {
my ( $class, %args ) = @_;