develooper Front page | perl.perl5.porters | Postings from December 2011

[perl #105278] Add warning for exists($a[0]) and delete($a[0])

Thread Previous | Thread Next
Father Chrysostomos via RT
December 4, 2011 06:34
[perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
On Sun Dec 04 01:47:40 2011, wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.39 running under perl 5.14.0.
> -----------------------------------------------------------------
> [Please describe your issue here]
> Hi,
> exists($a[$i]) and delete($a[0]) are deprecated, yet they don't emit a
> deprecation warning. There has been talk about removing them from core
> or
> changing their functionality, which required the deprecated warning to
> be
> emitted. The attached patches add a deprecation warning for those
> operations.
> I have previously gotten most use of exists($a[$i]) and delete($a[0])
> removed from the cpan/ directory, but two remain:
> - Object::Accessor has one remaining use, and there's an open ticket
> to
> have it fixed.
> - Tie::File needs to have C<< no warnings 'deprecated'; >> added
> around its
> tests for its EXISTS and DELETE handler. I'll be happy to submit a
> patch
> once this is committed.

Seeing that I maintain code that would produce literally thousands of
warnings as a result (and there’s nothing wrong with the code), I’m
opposed to this.


Father Chrysostomos

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About