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 9, 2021 18:41
Subject:
Re: "no snails"; or having signatured subs complain about @_
Message ID:
F935864E-97DB-450B-96D5-E2E2FF86D9B0@felipegasper.com

> On Dec 9, 2021, at 13:37, Dave Mitchell <davem@iabyn.com> wrote:
> 
> On Thu, Dec 09, 2021 at 05:36:06PM +0000, Paul "LeoNerd" Evans wrote:
>> This was the problem though - I couldn't work out how to keep @DB::args
>> working in that situation.
> 
> A more radical proposition would be to declare that @DB::args will always
> return empty for signature subs.

Would that break stack traces--or at least the argument-listing part of them?

If so, that would seem to be an unfortunate disincentive to adopt 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