Sujet : Re: question about nullptr
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.cDate : 09. Jul 2024, 13:10:54
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6j9ce$1bvoj$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
On 09/07/2024 08:32, Tim Rentsch wrote:
Any use of '\0' almost always strikes me as an affectation. It's
like people want to somehow pretend that it's not the same as
just 0.
I like to pretend
'\0' is not int
2 > 1 is not int
etc
I know it is int, but I think this needs a redesign in C.
Meanwhile compilers can just have the type "int" and sub-type.
I don't like to think '\0' is null pointer.
int * p = '\0';