Permalink
Browse files

Load expression subclasses after making immutable

    New Moose warns about this. RT4 still loads Lorzy and it's very loud

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/Lorzy/trunk@20118 e417ac7c-1bcc-0310-8ffa-8f5827389a85
  • Loading branch information...
1 parent bd03944 commit c5b2eca68e7778132628fe6267609502eceaaa5f @sartak sartak committed Sep 22, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Lorzy/Expression.pm
View
3 lib/Lorzy/Expression.pm
@@ -32,10 +32,11 @@ sub evaluate {
return $ev->result->value;
}
+__PACKAGE__->meta->make_immutable;
+
# force loading of each expression subclass
__PACKAGE__->expression_types;
-__PACKAGE__->meta->make_immutable;
no Moose;
1;

0 comments on commit c5b2eca

Please sign in to comment.