X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse.pm;h=f585439e930bad06c29d85f3e719eb8cfc2dbc00;hp=fd38b12a86903aa0b77b90b08b08e79038e1d45d;hb=1a8951d105e921ff1225439bc981b985ed1b1f4e;hpb=4819ed36c693b311abb3f7d9965e1eeac1748345 diff --git a/lib/Mouse.pm b/lib/Mouse.pm index fd38b12..f585439 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -3,7 +3,7 @@ use 5.006_002; use Mouse::Exporter; # enables strict and warnings -our $VERSION = '0.43'; +our $VERSION = '0.46'; use Carp qw(confess); use Scalar::Util qw(blessed); @@ -166,7 +166,7 @@ Mouse - Moose minus the antlers =head1 VERSION -This document describes Mouse version 0.43 +This document describes Mouse version 0.46 =head1 SYNOPSIS @@ -402,6 +402,22 @@ You may use L to replace the superclass list. Please unimport Mouse (C) so that if someone calls one of the keywords (such as L) it will break loudly instead breaking subtly. +=head1 CAVEATS + +If you use Mouse::XS you might see a fatal error on callbacks +which include C, which typically occurs in such code +as C. This is not +a bug in Mouse. In fact, it is a bug in Perl (RT #69939). + +To work around this problem, surround C with C: + + sub callback { + # eval 'use NotInstalledModule'; # NG + eval{ eval 'use NotInstalledModule' }; # OK + } + +It seems ridiculous, but it works as you expected. + =head1 SOURCE CODE ACCESS We have a public git repository: @@ -448,7 +464,7 @@ interface at L =head1 COPYRIGHT AND LICENSE -Copyright 2008-2009 Infinity Interactive, Inc. +Copyright (c) 2008-2010 Infinity Interactive, Inc. http://www.iinteractive.com/