From: gfx Date: Fri, 14 Aug 2009 00:46:04 +0000 (+0900) Subject: Changelog and document for the -extend command X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6d20824bec5be4c0bd41796417a1171b7b715356;p=gitmo%2FMoose.git Changelog and document for the -extend command --- diff --git a/Changes b/Changes index 7412ed0..126c60c 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,10 @@ Also see Moose::Manual::Delta for more details of, and workarounds for, noteworthy changes. +0.90 + * Moose::Exporter + - Make "use Moose -extends => [@superclasses]". (gfx) + 0.89 Thu Aug 13, 2009 * Moose::Manual::Attributes - Clarify "is", include discussion of "bare". (Sartak) diff --git a/lib/Moose.pm b/lib/Moose.pm index 9d93a07..694a830 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -294,9 +294,7 @@ Moose - A postmodern object system for Perl 5 } package Point3D; - use Moose; - - extends 'Point'; + use Moose -extends => 'Point'; has 'z' => (is => 'rw', isa => 'Int'); @@ -382,6 +380,8 @@ actually Ces onto the class's C<@ISA>, whereas C will replace it. This is important to ensure that classes which do not have superclasses still properly inherit from L. +You can also do this at compile-time with C [...]>. + =item B This will apply a given set of C<@roles> to the local class.