develooper Front page | perl.perl5.porters | Postings from November 2007

Class-Inner (was Re: BBC(Bleadperl Breaks CPAN) Where are we now?)

Thread Previous | Thread Next
From:
hv
Date:
November 4, 2007 16:05
Subject:
Class-Inner (was Re: BBC(Bleadperl Breaks CPAN) Where are we now?)
Message ID:
200711041420.lA4EKY8H025970@zen.crypt.org
andreas.koenig.7os6VVqR@franz.ak.mind.de (Andreas J. Koenig) wrote:
:After 45 BBC articles and 5.10 waiting around the corner I wanted to
:get an overview about the open issues. So I made the table below,
[...]
:  Unsolved (20):
:  --------------
:    PDCAWLEY/Class-Inner-0.1.tar.gz                   http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-07/msg00499.html

I suggest the patch below to Class::Inner to complete the DESTROY cleanup
as I think the module intends.

Hugo
--- Inner.pm.old	2001-08-12 13:50:47.000000000 +0100
+++ Inner.pm	2007-11-04 14:12:07.000000000 +0000
@@ -2,7 +2,7 @@
 
 use vars qw/$VERSION/;
 
-$VERSION = 0.1;
+$VERSION = 0.2;
 
 
 use strict;
@@ -149,6 +149,7 @@
 sub clean_symbol_table {
     my $class = shift;
     no strict 'refs';
+    @{"$class\::ISA"} = ();	# ensure caches are tidied even on 5.10+
     foreach my $symbol (keys %{"$class\::"}) {
 	delete ${"$class\::"}{$symbol};
     }
--- Changes.old	2001-08-12 13:54:03.000000000 +0100
+++ Changes	2007-11-04 14:10:31.000000000 +0000
@@ -1,3 +1,9 @@
+2007-11-04	Piers Cawley	<pdcawley@iterative-software.com>
+
+	v0.2 - changes in ISA/method caching for perl-5.10 require that @ISA
+	be explicitly cleared before removal from the symbol table to leave
+	the caches in a clean state. (Hugo van der Sanden <hv@crypt.org>)
+
 2001-08-12  Piers Cawley  <pdcawley@iterative-software.com>
 
 	* Initial release. Everthing working as documented, I think.  Now
--- README.old	2001-08-12 14:05:02.000000000 +0100
+++ README	2007-11-04 14:11:10.000000000 +0000
@@ -1,16 +1,16 @@
 INSTALLATION
     Just perform the usual incantation:
 
-    gunzip Class-Inner-0.1.tar.gz
-    tar -xvf Class-Inner-0.1.tar 
-    cd Class-Inner-0.1
+    gunzip Class-Inner-0.2.tar.gz
+    tar -xvf Class-Inner-0.2.tar 
+    cd Class-Inner-0.2
     perl Makefile.PL
     make
     make test
     make install
 
 AUTHOR
-    Copyright (c) 2001 Piers Cawley, <pdcawley@iterative-software.com>.
+    Copyright (c) 2001, 2007 Piers Cawley, <pdcawley@iterative-software.com>.
 
     All rights reserved. This program is free software; you can
     redistribute it and/or modify it under the same terms as

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About