Sujet : Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 25. Mar 2025, 08:45:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrtmu4$2s1q2$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 25.03.2025 05:56, Tim Rentsch wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
[...]
When I started with "C" or C++ there were not only 8-bit
multiples defined for the integral types; [...]
In C the correct phrase is integer types, not integral types.
My apologies if I'm using language independent terms. I'm confident,
though, that most people (obviously you as well) understood the term.
I understand that the "C" standard may have consistently been using
another naming. - Frankly, I'm a bit puzzled that general (language
independent) terms are considered "incorrect" by the audience here.
The constant 3.0, for example, has an integral value, but it
does not have an integer value.
The literal "3.0" is usually not representing the value of an integral
[data] type like 'int'.[*]
(You are speaking about "integral value" here, I was speaking about
the "integral [data] types". Not sure why you shifted the goalpost.)
Janis
[*] For languages that don't have a distinguished integral numeric
data type, or that do implicit coercion, things may be different of
course.