develooper Front page | perl.perl5.porters | Postings from October 2013

[perl #120386] av_len documentation

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
October 28, 2013 05:48
Subject:
[perl #120386] av_len documentation
Message ID:
rt-4.0.18-13589-1382939287-163.120386-15-0@perl.org
On Sun Oct 27 14:56:41 2013, root@mail.nethype.de wrote:
> 
> This is a bug report for perl from root@mail.nethype.de,
> generated with the help of perlbug 1.39 running under perl 5.18.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> The av_len documentation for 5.18.1 says:
> 
> Note that the return value is +1 what its name implies it returns; and
> hence differs in meaning from what the similarly named "sv_len"
> returns.
> 
> That seems wrong. Shouldn't it be:
> 
> Note that the return value +1 is what its name implies it returns
> 
> Or maybe even less confusing:
> 
> Note that, unlike the name implies, it returns the highest index in
> the array, so to get the size
> of the array you need to use C<av_len (av) + 1>.
> 
> 
> [Please do not change anything below this line]
> -----------------------------------------------------------------

Didn't KHW already fix this issue in these couple of commits earlier this year starting at http://perl5.git.perl.org/perl.git/23aa77bc9fa488ace3ef1089104e999c23821171 ?


-- 
bulk88 ~ bulk88 at hotmail.com

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

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