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

Re: "no snails"; or having signatured subs complain about @_

Thread Previous | Thread Next
From:
Felipe Gasper
Date:
December 6, 2021 17:29
Subject:
Re: "no snails"; or having signatured subs complain about @_
Message ID:
8623A79F-C190-4655-A1C0-624A856AD006@felipegasper.com

> On Dec 6, 2021, at 11:57, Tina Müller <post@tinita.de> wrote:
> 
> On Mon, 29 Nov 2021, Paul "LeoNerd" Evans wrote:
> 
>> The final part of the "signatures" feature still to be implemented, is
>> getting rid of the @_ setup as part of OP_ENTERSUB when entering a
>> signature'd sub, for the speed benefit it gives. I've been thinking
>> about how to implement this.
> 
> Sorry if this has been discussed before somewhere, but I'm wondering how to
> assign values to @_ when using signatures. Is there a way, or will there be?
> 
> e.g.
> 
>    sub inc($x) {
>        $_[0]++  # how to do this?
>    }

I think the idea is that this will not work with the finalized, de-experimentalized signatures.

-FG
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