[Templates-cvs] cvs commit: TT3/lib/Template/VObject Hash.pm List.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Wed, 10 Nov 2004 18:06:54 +0000


cvs         04/11/10 18:06:54

  Modified:    lib/Template/VObject Hash.pm List.pm
  Log:
  * derive clone() vmethod from subclass
  
  Revision  Changes    Path
  1.3       +5 -5      TT3/lib/Template/VObject/Hash.pm
  
  Index: Hash.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/VObject/Hash.pm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Hash.pm	2004/03/29 16:33:48	1.2
  +++ Hash.pm	2004/11/10 18:06:54	1.3
  @@ -18,7 +18,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Hash.pm,v 1.2 2004/03/29 16:33:48 abw Exp $
  +#   $Id: Hash.pm,v 1.3 2004/11/10 18:06:54 abw Exp $
   #
   #========================================================================
   
  @@ -30,7 +30,7 @@
   use base qw( Template::VObject );
   use vars qw( $VERSION $DEBUG $ERROR $THROW $METHODS );
   
  -$VERSION   = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
  +$VERSION   = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
   $DEBUG     = 0 unless defined $DEBUG;
   $ERROR     = '';
   $THROW     = 'Hash';
  @@ -41,7 +41,7 @@
   
       # constructor methods
       new      => \&new,
  -    clone    => \&clone,
  +    clone    => __PACKAGE__->can('clone'),
   
       # converter methods
       copy     => \&copy,
  @@ -120,7 +120,7 @@
   # Returns a copy of the hash blessed as another Hash object.
   #------------------------------------------------------------------------
   
  -sub clone {
  +sub old_clone_now_in_base_class {
       my $self = shift;
       $self->new($self, @_);
   }
  @@ -496,7 +496,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.2 $
  +$Revision: 1.3 $
   
   =head1 COPYRIGHT
   
  
  
  
  1.2       +3 -3      TT3/lib/Template/VObject/List.pm
  
  Index: List.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/VObject/List.pm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- List.pm	2004/03/29 16:24:54	1.1
  +++ List.pm	2004/11/10 18:06:54	1.2
  @@ -17,7 +17,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: List.pm,v 1.1 2004/03/29 16:24:54 abw Exp $
  +#   $Id: List.pm,v 1.2 2004/11/10 18:06:54 abw Exp $
   #
   #========================================================================
   
  @@ -29,7 +29,7 @@
   use base qw( Template::VObject );
   use vars qw( $VERSION $DEBUG $ERROR $THROW $METHODS );
   
  -$VERSION   = sprintf("%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/);
  +$VERSION   = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
   $DEBUG     = 0 unless defined $DEBUG;
   $ERROR     = '';
   $THROW     = 'List';
  @@ -40,7 +40,7 @@
   
       # constructor methods
       new      => \&new,
  -    clone    => \&clone,
  +    clone    => __PACKAGE__->can('clone'),
       copy     => \&copy,
   
       # converter methods
  @@ -126,7 +126,7 @@
   # Returns a copy of the list blessed as another List object.
   #------------------------------------------------------------------------
   
  -sub clone {
  +sub old_clone_now_in_base_class {
       my $self = CORE::shift;
       $self->new($self, @_);
   }
  @@ -666,7 +666,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.1 $
  +$Revision: 1.2 $
   
   =head1 COPYRIGHT