develooper Front page | perl.perl5.porters | Postings from November 2019

Re: @_ Suppression

From:
hv
Date:
November 29, 2019 16:59
Subject:
Re: @_ Suppression
Message ID:
201911291652.xATGqKP26790@crypt.org
Dave Mitchell <davem@iabyn.com> wrote:
:3) I propose that within the direct lexical scope of a signature sub, any
:code which uses the @_ variable (both rvalue and lvalue use, and as a
:container or as individual elements),  where detectable by the parser,
:will trigger a compile-time warning.

If possible this should also warn on implicit uses such as goto.

Hugo



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