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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 16, 2011 11:25
Subject:
Re: [perl #105278] Add warning for exists($a[0]) and delete($a[0])
Message ID:
CALJW-qEyhM9gWU_R128vu4DXe0wU54d+O7+RSy5HQGGRFPh+5g@mail.gmail.com
Hi,

The text of the opening post (below) describes patches #2 and #3.

Patch #1 changes two C<< exist($_[1]) >> to C<< @_ >= 2 >>. Any objections
to that? They aren't part of tests for exists($a[]) or delete($a[]).

- Eric


On Sun, Dec 4, 2011 at 4:47 AM, Eric Brine <perlbug-followup@perl.org>wrote:

> # New Ticket Created by  "Eric Brine"
> # Please include the string:  [perl #105278]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=105278 >
>
>
> 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.
>
> Thanks,
> Eric
>
>

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