Update parent to CPAN version 0.224
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Mon, 1 Nov 2010 00:23:12 +0000 (00:23 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Mon, 1 Nov 2010 00:24:08 +0000 (00:24 +0000)
  [DELTA]

  0.224  20101031
    . Change assignment @ISA = (@ISA, 'new::class')
      to use push @ISA, 'new::class'
      This should make class creation faster from 5.10 onwards
      and reverts a change made in 2.14. If this is critically slow for you
      and you can't upgrade your version of Perl, use the old way.

Porting/Maintainers.pl
cpan/parent/lib/parent.pm
pod/perldelta.pod

index 080d3cf..08a4195 100755 (executable)
@@ -1039,7 +1039,7 @@ use File::Glob qw(:case);
     'parent' =>
        {
        'MAINTAINER'    => 'corion',
-       'DISTRIBUTION'  => 'CORION/parent-0.223.tar.gz',
+       'DISTRIBUTION'  => 'CORION/parent-0.224.tar.gz',
        'FILES'         => q[cpan/parent],
        'UPSTREAM'      => undef,
        },
index a18526b..bd67b0f 100644 (file)
@@ -1,7 +1,7 @@
 package parent;
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.223';
+$VERSION = '0.224';
 
 sub import {
     my $class = shift;
@@ -23,9 +23,7 @@ sub import {
 
     {
         no strict 'refs';
-        # This is more efficient than push for the new MRO
-        # at least until the new MRO is fixed
-        @{"$inheritor\::ISA"} = (@{"$inheritor\::ISA"} , @_);
+        push @{"$inheritor\::ISA"}, @_;
     };
 };
 
@@ -33,6 +31,8 @@ sub import {
 
 __END__
 
+=encoding utf8
+
 =head1 NAME
 
 parent - Establish an ISA relationship with base classes at compile time
@@ -120,13 +120,13 @@ L<base>
 
 =head1 AUTHORS AND CONTRIBUTORS
 
-Rafaël Garcia-Suarez, Bart Lateur, Max Maischein, Anno Siegel, Michael Schwern
+Rafaël Garcia-Suarez, Bart Lateur, Max Maischein, Anno Siegel, Michael Schwern
 
 =head1 MAINTAINER
 
 Max Maischein C< corion@cpan.org >
 
-Copyright (c) 2007 Max Maischein C<< <corion@cpan.org> >>
+Copyright (c) 2007-10 Max Maischein C<< <corion@cpan.org> >>
 Based on the idea of C<base.pm>, which was introduced with Perl 5.004_04.
 
 =head1 LICENSE
index 01dffec..cc5cc23 100644 (file)
@@ -279,6 +279,10 @@ This fixes a memory leak when DBM filters are used.
 
 =item *
 
+C<parent> has been upgraded from 0.223 to 0.224
+
+=item *
+
 C<POSIX> has been upgraded from 1.21 to 1.22.
 
 =item *