Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?) Date: Tue, 25 Mar 2025 08:45:06 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: References: <868qp1ra5f.fsf@linuxsc.com> <20250319115550.0000676f@yahoo.com> <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com> <86o6xpk8sn.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 25 Mar 2025 08:45:08 +0100 (CET) Injection-Info: dont-email.me; posting-host="3f0884ca912002be49fa93c6b780a4fc"; logging-data="3016514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jYuccys5GG5jXKB8fvFJ9" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:069Vo4/33Cp2lJ2ohxinC3AK96U= In-Reply-To: <86o6xpk8sn.fsf@linuxsc.com> X-Enigmail-Draft-Status: N1110 Bytes: 2800 On 25.03.2025 05:56, Tim Rentsch wrote: > Janis Papanagnou 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.