From: Dave Rolsky Date: Tue, 12 Aug 2008 16:27:29 +0000 (+0000) Subject: Clarify handling of traits for class without init_meta X-Git-Tag: 0_55_01~39 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=631f792646e8e4f5f72d1073c7c50d3006a63452;p=gitmo%2FMoose.git Clarify handling of traits for class without init_meta --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 571c9b2..6aef5fe 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -426,7 +426,9 @@ parameter passed as part of the import: use Moose -traits => [ 'My::Meta::Trait', 'My::Other::Trait' ]; -These traits will be applied to the caller's metaclass instance. These traits will be ignored +These traits will be applied to the caller's metaclass +instance. Providing traits for an exporting class that does not create +a metaclass for the caller is an error. =head1 AUTHOR