Deutsch   English   Français   Italiano  
<vsoc85$37e62$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.tomockey.net!news.samoylyk.net!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: Muttley@DastardlyHQ.org
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Fri, 4 Apr 2025 10:28:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <vsoc85$37e62$1@dont-email.me>
References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me>
 <vsj2l9$1j0as$1@dont-email.me> <vsjgk0$207gb$1@paganini.bofh.team>
 <vsjkc8$252sk$1@dont-email.me> <vsk5h5$2kpbg$3@dont-email.me>
 <vsn3vu$1rigp$1@dont-email.me> <vso9ju$352et$1@dont-email.me>
 <vsoc2k$367mr$1@dont-email.me>
Injection-Date: Fri, 04 Apr 2025 12:28:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c4d4e4980b3de0ab40f443eec29dc220";
	logging-data="3389634"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/+iDNjlAB+UzjkHgy5iegu"
Cancel-Lock: sha1:RvIVuRN2+ykwlCvquFnUnX1Tb1s=
Bytes: 3496

On Fri, 4 Apr 2025 03:25:23 -0700
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> wibbled:
>On 4/4/2025 2:43 AM, Muttley@DastardlyHQ.org wrote:
>> On Thu, 3 Apr 2025 16:01:18 -0700
>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> wibbled:
>>> On 4/2/2025 1:09 PM, Chris M. Thomasson wrote:
>>>> On 4/2/2025 8:16 AM, Muttley@DastardlyHQ.org wrote:
>>>>> On Wed, 2 Apr 2025 14:12:18 -0000 (UTC)
>>>>> antispam@fricas.org (Waldek Hebisch) wibbled:
>>>>>> Muttley@dastardlyhq.org wrote:
>>>>>>> On Wed, 2 Apr 2025 10:57:29 +0100
>>>>>>> bart <bc@freeuk.com> wibbled:
>>>>>>>> On 02/04/2025 06:59, Alexis wrote:
>>>>>>>>>
>>>>>>>>> Thought people here might be interested in this image on Jens
>>>>>>>>> Gustedt's
>>>>>>>>> blog, which translates section 6.2.5, "Types", of the C23 standard
>>>>>>>>> into a graph of inclusions:
>>>>>>>>>
>>>>>>>>>      https://gustedt.wordpress.com/2025/03/29/a-diagram-of-c23-
>>>>>>>>> basic-types/
>>>>>>>>>
>>>>>>>>
>>>>>>>> So much for C being a 'simple' language.
>>>>>>>
>>>>>>> C should be left alone. It does what it needs to do for a systems
>>>>>>> language.
>>>>>>> Almost no use uses it for applications any more and sophisticated
>>>>>>> processing
>>>>>>> using complex types for example are far better done in C++.
>>>>>>
>>>>>> C99 has VMT (variable modified types).  Thanks to VMT and complex types
>>>>>> C99 can naturaly do numeric computing that previously was done using
>>>>>> Fortran 77.  Offical C++ has no VMT.  C++ mechanizms look nicer,
>>>>>
>>>>> Officially no, but I've never come across a C++ compiler that didn't
>>>>> support
>>>>> them given they're all C compilers too.
>>>>
>>>> All C++ compilers are also C compilers?
>>>
>>> To answer my own sarcastic question: No way. :^)
>> 
>> So name one that isn't. Fairly simple way to prove your point.
>> 
>
>Try to compile this in a C++ compiler:
>_____________
>#include <stdlib.h>
>#include <stdio.h>
>
>int main() {
>   void *p = malloc(sizeof(int));
>   int *ip = p;
>   free(p);
>   printf("done\n");
>   return 0;
>}
>_____________
>

$ cc -v
Apple clang version 16.0.0 (clang-1600.0.26.6)
Target: arm64-apple-darwin24.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ cc t.c
$ a.out
done

>What am I missing?

You tell me mate.