Re: "A diagram of C23 basic types"

Liste des GroupesRevenir à cl c 
Sujet : Re: "A diagram of C23 basic types"
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c
Date : 02. Apr 2025, 18:29:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vsjs5k$2bfc5$2@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 02/04/2025 17:38, bart wrote:
On 02/04/2025 16:26, Muttley@DastardlyHQ.org wrote:
On Wed, 2 Apr 2025 16:59:45 +0200
David Brown <david.brown@hesbynett.no> wibbled:
On 02/04/2025 16:05, Muttley@DastardlyHQ.org wrote:
I suspect the people who are happy with C never have any correspondence with
anyone from the committee so they get an entirely biased sample. Just like
its usually only people who had a bad experience that fill in "How did we do"
>
surveys.
>
And I suspect that you haven't a clue who the C standards committee talk
to - and who those people in turn have asked.
>
By imference you do - so who are they?
>
11. nullptr for clarity and safety.
>
Never understood that in C++ never mind C. NULL has worked fine for 50 years.
 And it's been a hack for 50 years. Especially when it is just:
    #define NULL 0
The common definition in C is :
#define NULL ((void*) 0)
Some compilers might have an extension, such as gcc's "__null", that are used instead to allow better static error checking.
(In C++, it is often defined to 0, because the rules for implicit conversions from void* are different in C++.)

 You also need to include some header (which one?) in order to use it.
<stddef.h>, as pretty much any C programmer will know.

I'd hope you wouldn't need to do that for nullptr, but backwards compatibility may require it (because of any forward-thinking individuals who have already defined their own 'nullptr').
 
No, nullptr is a keyword in C23.

Date Sujet#  Auteur
2 Apr06:59 * "A diagram of C23 basic types"33Alexis
2 Apr07:02 +- Re: "A diagram of C23 basic types"1Lawrence D'Oliveiro
2 Apr08:02 +* Re: "A diagram of C23 basic types"3Janis Papanagnou
2 Apr08:32 i+- Re: "A diagram of C23 basic types"1Kaz Kylheku
2 Apr10:33 i`- Re: "A diagram of C23 basic types"1David Brown
2 Apr10:57 `* Re: "A diagram of C23 basic types"28bart
2 Apr11:14  `* Re: "A diagram of C23 basic types"27Muttley
2 Apr14:35   +* Re: "A diagram of C23 basic types"23David Brown
2 Apr15:05   i+* Re: "A diagram of C23 basic types"21Muttley
2 Apr15:12   ii+* Re: "A diagram of C23 basic types"7Thiago Adams
2 Apr16:12   iii`* Re: "A diagram of C23 basic types"6Muttley
2 Apr16:33   iii `* Re: "A diagram of C23 basic types"5bart
2 Apr16:51   iii  `* Re: "A diagram of C23 basic types"4Muttley
2 Apr22:31   iii   +* Re: "A diagram of C23 basic types"2Janis Papanagnou
3 Apr02:02   iii   i`- Re: "A diagram of C23 basic types"1Janis Papanagnou
3 Apr01:10   iii   `- Re: "A diagram of C23 basic types"1bart
2 Apr15:28   ii+* Re: "A diagram of C23 basic types"2Michael S
2 Apr16:17   iii`- Re: "A diagram of C23 basic types"1Muttley
2 Apr15:59   ii`* Re: "A diagram of C23 basic types"11David Brown
2 Apr16:26   ii +* Re: "A diagram of C23 basic types"9Muttley
2 Apr16:38   ii i+* Re: "A diagram of C23 basic types"7bart
2 Apr16:53   ii ii+- Re: "A diagram of C23 basic types"1Muttley
2 Apr18:29   ii ii+* Re: "A diagram of C23 basic types"4David Brown
2 Apr19:26   ii iii`* Re: "A diagram of C23 basic types"3bart
2 Apr19:51   ii iii +- Re: "A diagram of C23 basic types"1Kaz Kylheku
3 Apr01:41   ii iii `- Re: "A diagram of C23 basic types"1Keith Thompson
2 Apr21:24   ii ii`- Re: "A diagram of C23 basic types"1Michael S
2 Apr18:23   ii i`- Re: "A diagram of C23 basic types"1David Brown
2 Apr22:43   ii `- Re: "A diagram of C23 basic types"1Janis Papanagnou
2 Apr19:02   i`- Re: "A diagram of C23 basic types"1Kaz Kylheku
2 Apr15:12   `* Re: "A diagram of C23 basic types"3Waldek Hebisch
2 Apr16:16    `* Re: "A diagram of C23 basic types"2Muttley
2 Apr21:09     `- Re: "A diagram of C23 basic types"1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal