summaryrefslogtreecommitdiff
path: root/lib/Attribute/Handlers
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-14 21:55:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-14 21:55:51 +0000
commit271fb08e7248a5c6238f2dd42e6dc29065dd806f (patch)
tree54114c0a04889d7e647ce9297a4de9f4f1a809f1 /lib/Attribute/Handlers
parent9246c65e7445d45babd69ada378ff7f5f266c771 (diff)
downloadperl-271fb08e7248a5c6238f2dd42e6dc29065dd806f.tar.gz
Upgrade to Attribute::Handlers 0.76.
p4raw-id: //depot/perl@13006
Diffstat (limited to 'lib/Attribute/Handlers')
-rw-r--r--lib/Attribute/Handlers/Changes10
-rw-r--r--lib/Attribute/Handlers/README19
-rwxr-xr-xlib/Attribute/Handlers/demo/Demo.pm1
-rwxr-xr-xlib/Attribute/Handlers/demo/Descriptions.pm1
-rwxr-xr-xlib/Attribute/Handlers/demo/MyClass.pm1
-rwxr-xr-xlib/Attribute/Handlers/demo/demo_cycle.pl14
-rwxr-xr-xlib/Attribute/Handlers/demo/demo_hashdir.pl2
-rw-r--r--lib/Attribute/Handlers/t/multi.t2
8 files changed, 34 insertions, 16 deletions
diff --git a/lib/Attribute/Handlers/Changes b/lib/Attribute/Handlers/Changes
index 4df4edb9e7..1b5e620482 100644
--- a/lib/Attribute/Handlers/Changes
+++ b/lib/Attribute/Handlers/Changes
@@ -61,3 +61,13 @@ Revision history for Perl extension Attribute::Handlers
- Changed licence for inclusion in core distribution
- Fixed 'autotie' for tied classes with multi-level names (thanks Jeff)
+
+
+0.76 Thu Nov 15 06:31:51 2001
+
+ - Fixed documentation nit (thanks Rick)
+
+ - Improving intuitiveness of autotie mechanism (thanks Marcel)
+
+ - Added $VERSION numbrs to demo modules (seems bizarre to me, but
+ they're core too now).
diff --git a/lib/Attribute/Handlers/README b/lib/Attribute/Handlers/README
index e8f07833bd..c9e067c8e6 100644
--- a/lib/Attribute/Handlers/README
+++ b/lib/Attribute/Handlers/README
@@ -1,5 +1,5 @@
==============================================================================
- Release of version 0.75 of Attribute::Handlers
+ Release of version 0.76 of Attribute::Handlers
==============================================================================
@@ -51,22 +51,15 @@ COPYRIGHT
==============================================================================
-CHANGES IN VERSION 0.75
+CHANGES IN VERSION 0.76
- - Cleaned up AUTOLOAD
+ - Fixed documentation nit (thanks Rick)
- - Numerous bug fixes (thanks Pete)
+ - Improving intuitiveness of autotie mechanism (thanks Marcel)
- - Fixed handling of attribute data that includes a newline (thanks Pete)
-
- - Added "autotieref" option (thanks Pete)
-
- - Switched off $DB::single
-
- - Changed licence for inclusion in core distribution
-
- - Fixed 'autotie' for tied classes with multi-level names (thanks Jeff)
+ - Added $VERSION numbrs to demo modules (seems bizarre to me, but
+ they're core too now).
==============================================================================
diff --git a/lib/Attribute/Handlers/demo/Demo.pm b/lib/Attribute/Handlers/demo/Demo.pm
index d82693574b..e763d23b90 100755
--- a/lib/Attribute/Handlers/demo/Demo.pm
+++ b/lib/Attribute/Handlers/demo/Demo.pm
@@ -1,6 +1,7 @@
$DB::single = 1;
package Demo;
+$VERSION = '1.00';
use Attribute::Handlers;
no warnings 'redefine';
diff --git a/lib/Attribute/Handlers/demo/Descriptions.pm b/lib/Attribute/Handlers/demo/Descriptions.pm
index e904dbb7f7..023f6f752f 100755
--- a/lib/Attribute/Handlers/demo/Descriptions.pm
+++ b/lib/Attribute/Handlers/demo/Descriptions.pm
@@ -1,4 +1,5 @@
package Descriptions;
+$VERSION = '1.00';
use Attribute::Handlers;
diff --git a/lib/Attribute/Handlers/demo/MyClass.pm b/lib/Attribute/Handlers/demo/MyClass.pm
index 60948eb42d..079b2cc3ad 100755
--- a/lib/Attribute/Handlers/demo/MyClass.pm
+++ b/lib/Attribute/Handlers/demo/MyClass.pm
@@ -1,4 +1,5 @@
package MyClass;
+$VERSION = '1.00';
use v5.6.0;
use base Attribute::Handlers;
no warnings 'redefine';
diff --git a/lib/Attribute/Handlers/demo/demo_cycle.pl b/lib/Attribute/Handlers/demo/demo_cycle.pl
index 771de94ea0..5f307a7036 100755
--- a/lib/Attribute/Handlers/demo/demo_cycle.pl
+++ b/lib/Attribute/Handlers/demo/demo_cycle.pl
@@ -3,7 +3,12 @@ package Selfish;
sub TIESCALAR {
use Data::Dumper 'Dumper';
print Dumper [ \@_ ];
- bless {}, $_[0];
+ bless [ @_[1..$#_] ], $_[0];
+}
+
+sub FETCH {
+ use Data::Dumper 'Dumper';
+ Dumper [ @{$_[0]} ];
}
package main;
@@ -11,5 +16,10 @@ package main;
use Attribute::Handlers autotieref => { Selfish => Selfish };
my $next : Selfish("me");
-
print "$next\n";
+
+my $last : Selfish("you","them","who?");
+print "$last\n";
+
+my $other : Selfish(["you","them","who?"]);
+print "$other\n";
diff --git a/lib/Attribute/Handlers/demo/demo_hashdir.pl b/lib/Attribute/Handlers/demo/demo_hashdir.pl
index 2e7a4e285d..75e252b1a0 100755
--- a/lib/Attribute/Handlers/demo/demo_hashdir.pl
+++ b/lib/Attribute/Handlers/demo/demo_hashdir.pl
@@ -5,3 +5,5 @@ my %dot : Dir('.', DIR_UNLINK);
print join "\n", keys %dot;
delete $dot{killme};
+
+print join "\n", keys %dot;
diff --git a/lib/Attribute/Handlers/t/multi.t b/lib/Attribute/Handlers/t/multi.t
index 5f4e59e0ec..773606d55e 100644
--- a/lib/Attribute/Handlers/t/multi.t
+++ b/lib/Attribute/Handlers/t/multi.t
@@ -126,6 +126,6 @@ $loud++;
my @noisy : Noisy(34);
$noisy[0]++;
-my %rowdy : Rowdy(37);
+my %rowdy : Rowdy(37,'this arg should be ignored');
$rowdy{key}++;