From: Jarkko Hietaniemi Date: Mon, 27 May 2002 16:35:47 +0000 (+0000) Subject: We are not that certain about the localising of X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8602d933f74c6c6a1b865cdb839046b8db4c0353;p=p5sagit%2Fp5-mst-13.2.git We are not that certain about the localising of tied aggregates. p4raw-id: //depot/perl@16813 --- diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 9810576..7df5050 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -1,4 +1,4 @@ -=head1 NAME +.=head1 NAME perldelta - what is new for perl v5.8.0 @@ -3031,15 +3031,11 @@ ability to build extensions, and that seems to be working reasonably well.) local %tied_array; -doesn't work as one would expect: the old value is restored incorrectly. -This will be fixed in a future release, but note that doing so will break -existing code that relies on the broken semantics. It is important -that you check and alter any such code now. In the future release, -localising a tied array or hash will convert that variable into a new, -empty, and B array or hash. At the end of the block, the variable -will be repointed at the original tied thingy. Note that no tied methods -will be called at any point during this process. (With the existing -behaviour, the variable remains tied while localised.) +doesn't work as one would expect: the old value is restored +incorrectly. This will be changed in a future release, but we don't +know yet which the new semantics will exactly be. In any case the +change will break existing code that relies on the current +(ill-defined) semantics, so just avoid doing this in general. =head2 Self-tying of Arrays and Hashes Is Forbidden