From: Artur Bergman Date: Sat, 5 Oct 2002 04:44:10 +0000 (+0000) Subject: Upgrade to Attribute::Handlers 0.78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f903cfeff225fbb1a41baf0935d62478da7b70a1;p=p5sagit%2Fp5-mst-13.2.git Upgrade to Attribute::Handlers 0.78 p4raw-id: //depot/perl@17978 --- diff --git a/lib/Attribute/Handlers.pm b/lib/Attribute/Handlers.pm index 60b0aa1..a26ed18 100644 --- a/lib/Attribute/Handlers.pm +++ b/lib/Attribute/Handlers.pm @@ -217,8 +217,8 @@ Attribute::Handlers - Simpler definition of attribute handlers =head1 VERSION -This document describes version 0.77 of Attribute::Handlers, -released June 8, 2002. +This document describes version 0.78 of Attribute::Handlers, +released October 5, 2002. =head1 SYNOPSIS @@ -602,11 +602,14 @@ C<__CALLER__>, which may be specified as the qualifier of an attribute: package Tie::Me::Kangaroo:Down::Sport; - use Attribute::Handlers autotie => { __CALLER__::Roo => __PACKAGE__ }; + use Attribute::Handlers autotie => { '__CALLER__::Roo' => __PACKAGE__ }; This causes Attribute::Handlers to define the C attribute in the package that imports the Tie::Me::Kangaroo:Down::Sport module. +Note that it is important to quote the __CALLER__::Roo identifier because +a bug in perl 5.8 will refuse to parse it and cause an unknown error. + =head3 Passing the tied object to C Occasionally it is important to pass a reference to the object being tied diff --git a/lib/Attribute/Handlers/Changes b/lib/Attribute/Handlers/Changes index d2dcce6..563776a 100644 --- a/lib/Attribute/Handlers/Changes +++ b/lib/Attribute/Handlers/Changes @@ -92,3 +92,11 @@ Revision history for Perl extension Attribute::Handlers - [#15945] Do not warn about too late CHECK and INIT block if A::H is pulled in using a require. +0.78 Sat Oct 5 07:18:09 CEST 2002 + + - [#17940] Includes :unique and :shared in the builtin types + + - From perl 5.8 { __CALLER__::foo => __PACKAGE } is missparsed, + the proper approach is to use { '__CALLER__::foo' => __PACKAGE }. + The documentation is updated to reflect this. + Reported by Dave Cross \ No newline at end of file diff --git a/lib/Attribute/Handlers/README b/lib/Attribute/Handlers/README index 2931c35..b5247e9 100644 --- a/lib/Attribute/Handlers/README +++ b/lib/Attribute/Handlers/README @@ -1,5 +1,5 @@ ============================================================================== - Release of version 0.77 of Attribute::Handlers + Release of version 0.78 of Attribute::Handlers ============================================================================== @@ -44,32 +44,20 @@ AUTHOR Damian Conway (damian@conway.org) COPYRIGHT - Copyright (c) 2001, Damian Conway. All Rights Reserved. + Copyright (c) 2001-2002, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. ============================================================================== -0.77 Sat Jun 8 22:58:56 CEST 2002 - - - Since Attribute::Handlers now is core, I will refer to changes - with their patch number, please read Porting/repository.pod from - your a perl tarball for more information. - - - Brought up to date with perl 5.8RC1 version - will be 5.8 if no more changes come in - - - [#13686] This changes the behaviour of lexical attributes. - Prior to this lexical attributes were done at a compile time, - and they would loose their attribute on the next run over them. - Now perl 5.8 calls the attribute handler runtime whenever it hits my. - - - [#14448] Fixes cases with too high refcounts on lexical attributes - - - [#15945] Do not warn about too late CHECK and INIT block if - A::H is pulled in using a require. +0.78 Sat Oct 5 07:18:09 CEST 2002 + + - [#17940] Includes :unique and :shared in the builtin types + - From perl 5.8 { __CALLER__::foo => __PACKAGE } is missparsed, + the proper approach is to use { '__CALLER__::foo' => __PACKAGE }. + The documentation is updated to reflect this. ==============================================================================