Path: csiph.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: Is EXIT_SUCCESS/EXIT_FAILURE necessary? Date: Tue, 26 Nov 2024 04:21:02 -0800 Organization: A noiseless patient Spider Lines: 29 Message-ID: <86ldx6qj81.fsf@linuxsc.com> References: <8463694f3a751b287c857fca181451f36eeee982.camel@gmail.com> <6OG%O.12794$vGnb.894@fx46.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 26 Nov 2024 13:21:02 +0100 (CET) Injection-Info: dont-email.me; posting-host="1ebfc87b5a97bb6cfe9751ebbb383b2b"; logging-data="3626788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W0bsTD5UHprxdcl5jOwaLgc0TlGeSxAs=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:/3h2fn3Rtb62gIBY0my3UdCQzFE= sha1:4vk3a55Flm2MGj1Af1fZDcZyymk= Xref: csiph.com comp.lang.c++:121025 scott@slp53.sl.home (Scott Lurndal) writes: > Muttley@DastartdlyHQ.org writes: > >> On Thu, 21 Nov 2024 13:43:30 GMT >> scott@slp53.sl.home (Scott Lurndal) boring babbled: >> >>> "Chris M. Thomasson" writes: >>> >>>> On 11/20/2024 2:33 PM, Chris M. Thomasson wrote: >>>> >>>>> On 11/20/2024 2:11 PM, Scott Lurndal wrote: >>>> >>>> Actually, for some reason, this makes me think of nullptr = 0 = >>>> NULL wrt NULL can be 0xdeadbeefbeefdead? >>> >>> I've worked with systems where the NULL pointer value was not >>> zero. >>> >>> That's why C has a symbolic constant for NULL. >> >> Thats a bit iffy given the number of devs - and I include myself - >> who often use ! in place of == NULL and >> similarly instead of != NULL. > > No, it's not iffy, that's just bad coding practice on your part. That is a commonly held view, but I've never seen any defense offered for it other than folklore.