From: Yuval Kogman Date: Wed, 9 Jan 2008 10:32:19 +0000 (+0000) Subject: icky hack in Moose::Object to make it compile without loading unnecessary additional... X-Git-Tag: 0_35~19^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9922fa6fbb2dddabc660e9e70da543e977b2d2b3;p=gitmo%2FMoose.git icky hack in Moose::Object to make it compile without loading unnecessary additional modules --- diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 6b723dd..409db5d 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -4,8 +4,8 @@ package Moose::Object; use strict; use warnings; -use Moose::Meta::Class; -use metaclass 'Moose::Meta::Class'; +use if ( not our $__mx_is_compiled ), 'Moose::Meta::Class'; +use if ( not our $__mx_is_compiled ), metaclass => 'Moose::Meta::Class'; use Carp 'confess'; @@ -161,4 +161,4 @@ L This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. -=cut \ No newline at end of file +=cut