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

Re: [perl #72784] [META] misuse of I32

Thread Previous | Thread Next
Chip Salzenberg
July 31, 2013 23:39
Re: [perl #72784] [META] misuse of I32
Message ID:
On 7/30/2013 6:33 AM, Father Chrysostomos via RT 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.

Your emphasis is incorrect.  Rather, size_t adds very little
complication for significant systemic gain: Correctness and consistency.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About