bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: range types, ptrdiff_t, signed integers for internals


From: Bruno Haible
Subject: Re: range types, ptrdiff_t, signed integers for internals
Date: Fri, 13 Dec 2019 00:26:07 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

Hi Paul,

> For now I was more conservative installed the attached, which limits the 
> scope of the new type (which I dubbed "idx_t", by analogy from Idx in 
> the regex code) to dfa.c.

Thank you!

The type name 'idx_t' sounds good, since in most cases it denotes an index
(or a bound for an index), and it has the usual _t suffix.

> There 
> were iffy places where it kinda doesn't matter whether one uses 
> ptrdiff_t or idx_t and where I expect other developers won't bother 
> about the difference

Right. The same situation occurs already with 'int' vs. 'unsigned int':
In a number of places it doesn't matter. But in many places it does matter.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]