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
From:
Father Chrysostomos via RT
Date:
December 4, 2011 06:34
Subject:
[perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
rt-3.6.HEAD-5084-1323009268-317.105278-15-0@perl.org
On Sun Dec 04 01:47:40 2011, ikegami@adaelis.com wrote:
> This is a bug report for perl from ikegami@adaelis.com,
> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About