develooper Front page | perl.perl5.porters | Postings from June 2022

Re: goto and @_

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
June 6, 2022 20:02
Subject:
Re: goto and @_
Message ID:
CAB=rbOkzCc2VsLtC_HYU6AkZyVcGk+4OukKwa7BmeJUqpektow@mail.gmail.com
On Mon, 6 Jun 2022 at 14:15, Dave Mitchell <davem@iabyn.com> wrote:

> On Fri, Jun 03, 2022 at 06:50:19PM +0200, Ovid wrote:
> > So goto requires @_.
> >
> > Is there a plan for this?
>
> My intention was always that you would still be able to do:
>
>     sub foo($x,$y) {
>         ...;
>         no warnings;
>         local @_ = (1,2);
>         goto &tail_call;
>     }
>
> the only slight complication being that I anticipated the warnings
> category to disable off would be something like 'signatures', but in 5.36
> at least, it's actually 'experimental' - and is likely to vary between
> releases.
>
>
>
> --
> The Enterprise's efficient long-range scanners detect a temporal vortex
> distortion in good time, allowing it to be safely avoided via a minor
> course correction.
>     -- Things That Never Happen in "Star Trek" #21
>

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