From: Shawn M Moore Date: Fri, 10 Apr 2009 00:08:09 +0000 (-0400) Subject: Deprecate Squirrel X-Git-Tag: 0.20~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2df74b3a354723710bc01ee836297ea3791d01dc;p=gitmo%2FMouse.git Deprecate Squirrel --- diff --git a/Changes b/Changes index 2e63065..0779106 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Mouse 0.20 + * Squirrel is now deprecated. Use Any::Moose instead (Sartak) + * To improve Moose compat, the third argument to trigger (the attribute metaobject) has been removed (Sartak) diff --git a/lib/Squirrel.pm b/lib/Squirrel.pm index f10d7cb..565a3e2 100644 --- a/lib/Squirrel.pm +++ b/lib/Squirrel.pm @@ -29,6 +29,8 @@ sub _handlers { } sub import { + require Carp; + Carp::carp("Squirrel is deprecated. Please use Any::Moose instead. It fixes a number of design problems that Squirrel has."); goto $_[0]->_handlers->{import}; }