From cbb3fa723f207c2682ac39fe6db5bab0af992649 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 16 May 2001 14:50:55 +0000 Subject: [PATCH] Deprecate pseudo-hashes. p4raw-id: //depot/perl@10132 --- pod/perl572delta.pod | 9 +++++++++ pod/perlref.pod | 7 +++++++ pod/perltodo.pod | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pod/perl572delta.pod b/pod/perl572delta.pod index bce7328..fe1eed0 100644 --- a/pod/perl572delta.pod +++ b/pod/perl572delta.pod @@ -27,6 +27,15 @@ for more information. =head1 Incompatible Changes +=head1 Future Deprecations + +The current user-visible implementation of pseudo-hashes (the weird +use of the first array element) is deprecated starting from Perl 5.8.0 +and will be removed in Perl 5.10.0, and the feature will be implemented +differently. Not only is the current interface rather ugly, but the +current implementation slows down normal array and hash use quite +noticeably. The 'fields' pragma interface will remain available. + =head1 Core Enhancements =head1 Modules and Pragmata diff --git a/pod/perlref.pod b/pod/perlref.pod index 2727e95..a62276b7 100644 --- a/pod/perlref.pod +++ b/pod/perlref.pod @@ -538,6 +538,13 @@ string is effectively quoted. B: This section describes an experimental feature. Details may change without notice in future versions. +B: The current user-visible implementation of pseudo-hashes +(the weird use of the first array element) is deprecated starting from +Perl 5.8.0 and will be removed in Perl 5.10.0, and the feature will be +implemented differently. Not only is the current interface rather ugly, +but the current implementation slows down normal array and hash use quite +noticeably. The 'fields' pragma interface will remain available. + Beginning with release 5.005 of Perl, you may use an array reference in some contexts that would normally require a hash reference. This allows you to access array elements using symbolic names, as if they diff --git a/pod/perltodo.pod b/pod/perltodo.pod index 39aa37f..8c94a29 100644 --- a/pod/perltodo.pod +++ b/pod/perltodo.pod @@ -747,7 +747,7 @@ Suggesting this on P5P B cause a boring and interminable flamewar. =head2 "class"-based lexicals -Use flyweight objects, secure hashes or, dare I say it, pseudohashes instead. +Use flyweight objects, secure hashes or, dare I say it, pseudo-hashes instead. =head2 byteperl -- 2.7.4