Path: csiph.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Is EXIT_SUCCESS/EXIT_FAILURE necessary? Date: Thu, 28 Nov 2024 18:32:13 -0800 Organization: None to speak of Lines: 27 Message-ID: <87r06usrbm.fsf@nosuchdomain.example.com> References: <8463694f3a751b287c857fca181451f36eeee982.camel@gmail.com> <6OG%O.12794$vGnb.894@fx46.iad> <871pz3ngzb.fsf@nosuchdomain.example.com> <5c1e5e41d6fba5e173da099e0f7255838f45ddce.camel@gmail.com> <87iksbkm2e.fsf@nosuchdomain.example.com> <0b7c04642b0175f0dc90f52eccf671422686d60b.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 29 Nov 2024 03:32:14 +0100 (CET) Injection-Info: dont-email.me; posting-host="f64fae3639db49189bd8f4bb24b9887f"; logging-data="840809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194AF+EccorWnT7/zi1f8mn" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:bqdfj6dxITacSrOEos+9YXdnPyM= sha1:Cf0TySZwhU3WAhaXIpGA6Y8s8Cw= Xref: csiph.com comp.lang.c++:121068 wij writes: > On Mon, 2024-11-25 at 14:03 -0800, Keith Thompson wrote: [...] >> nullptr exists in C++ (I don't remember when it was introduced) and in C >> starting with C23.  > > Thanks, I didn't know that > >> It is, in my opinion, what should have been provided >> in both languages instead of the NULL macro. >> > My question would be: why not make NULL a 'reserved' word, instead of macro? NULL and nullptr have subtly different semantics. Making NULL a keyword could break existing code. (And an all-caps keyword would be ugly.) [...] > So far, I can still avoid using variadic functions. I use overload. Implement > looks bad, but it works fine. Any way, inventing nullptr for such rare? case > is IOM overkill. nullptr was introduced in C++11. Your misgivings are a bit late. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */