develooper Front page | perl.perl5.porters | Postings from May 2015

[perl #124420] [PATCH] $Carp::MaxArgNums off-by-one error

Thread Previous
From:
Alexander D'Archangel via RT
Date:
May 8, 2015 01:37
Subject:
[perl #124420] [PATCH] $Carp::MaxArgNums off-by-one error
Message ID:
rt-4.0.18-3733-1431049063-440.124420-15-0@perl.org
On Wed May 06 20:03:18 2015, rjk@tamias.net wrote:
> On Tue, Apr 28, 2015 at 09:16:06PM -0700, Alexander D'Archangel wrote:
> 
> > $Carp::MaxArgNums is documented to be the number of arguments to
> > display in
> > tracebacks, but it has a bug that means that the actual number of
> > arguments
> > displayed is $MaxArgNums + 1 .
> 
> > $Carp::MaxArgNums is documented as the number of arguments to
> > display,
> > but it for a long time has instead been the number of arguments to
> > display +1.
> 
> Note that the second sentence, from the commit log, has the offset
> backwards.

Oh, dear.  Here is an amended commit.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=124420

Thread Previous


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