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

[perl #72784] [META] misuse of I32

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
July 30, 2013 15:21
Subject:
[perl #72784] [META] misuse of I32
Message ID:
rt-3.6.HEAD-2552-1375197649-583.72784-15-0@perl.org
On Tue Jul 30 06:33:28 2013, sprout wrote:
> On Mon Jul 29 22:19:43 2013, chip wrote:
> > On 7/27/2013 7:33 PM, Father Chrysostomos via RT wrote:
> > > What should the maximum string and array lengths be?
> > 
> > Why would the answer ever be anything other than size_t?
> 
> Because AvFILLp needs to be set to -1 when the array is empty.  We
> *could* use size_t but reserve ~0 as a special marker, but that
> complicates the code for little gain.

Also, the HV APIs use negative lengths for utf8.

-- 

Father Chrysostomos


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

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