projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Moose now warns when you try to load it from the main package. Added a
[gitmo/Moose.git]
/
lib
/
Moose.pm
diff --git
a/lib/Moose.pm
b/lib/Moose.pm
index
9551c07
..
21ef374
100644
(file)
--- a/
lib/Moose.pm
+++ b/
lib/Moose.pm
@@
-167,7
+167,10
@@
use Moose::Util ();
warnings->import;
# we should never export to main
- return if $CALLER eq 'main';
+ if ($CALLER eq 'main') {
+ warn qq{Moose does not export its sugar to the 'main' package.\n};
+ return;
+ }
init_meta( $CALLER, 'Moose::Object' );