From: gfx Date: Tue, 22 Sep 2009 05:13:51 +0000 (+0900) Subject: Add a comment X-Git-Tag: 0.32~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=8f98ed261eac95dc093a9b6d22c462c790e63736 Add a comment --- diff --git a/lib/Mouse/Meta/Class.pm b/lib/Mouse/Meta/Class.pm index 4215efa..2689f85 100644 --- a/lib/Mouse/Meta/Class.pm +++ b/lib/Mouse/Meta/Class.pm @@ -312,6 +312,7 @@ sub create { || $class->throw_error("You must pass an ARRAY ref of roles") if exists $options{roles}; + # instantiate a module { ( defined $package_name && $package_name ) || $class->throw_error("You must pass a package name"); @@ -340,6 +341,7 @@ sub create { $meta->superclasses(@{$options{superclasses}}) if exists $options{superclasses}; + # NOTE: # process attributes first, so that they can # install accessors, but locally defined methods