Deutsch English Français Italiano |
<v6nd8a$28u97$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Wed, 10 Jul 2024 18:41:29 -0700 Organization: A noiseless patient Spider Lines: 27 Message-ID: <v6nd8a$28u97$1@dont-email.me> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6bfi1$3qn4u$1@dont-email.me> <l9ciO.7$cr5e.2@fx05.iad> <877cdyuq0f.fsf@bsb.me.uk> <2ckiO.19403$7Ej.4487@fx46.iad> <87plrpt4du.fsf@bsb.me.uk> <9bCiO.7108$sXW9.3805@fx41.iad> <87jzhwu5v9.fsf@bsb.me.uk> <20240708001722.280@kylheku.com> <v6gab6$qdd2$1@dont-email.me> <878qyctcdt.fsf@bsb.me.uk> <20240708192708.531@kylheku.com> <87bk36syx7.fsf@bsb.me.uk> <v6n96p$23rhi$5@dont-email.me> <8734ogn33a.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 11 Jul 2024 03:41:30 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9e4d47bab28597d7f8b7db1375a7cff9"; logging-data="2390311"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jIVtn2BZymnUFBQR+/3mQ343AiMd6DJA=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:GdPDHCWZALS2k8QOtMSt9cRPfu8= Content-Language: en-US In-Reply-To: <8734ogn33a.fsf@bsb.me.uk> Bytes: 2608 On 7/10/2024 6:12 PM, Ben Bacarisse wrote: > "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes: > >> On 7/9/2024 2:21 AM, Ben Bacarisse wrote: >>> Kaz Kylheku <643-408-1753@kylheku.com> writes: >>> >>>> On 2024-07-08, Ben Bacarisse <ben@bsb.me.uk> wrote: >> [...] >>>> We could patch GCC to have a -Wnull-ptr-zero, which will give you a >>>> diagnostic for every occurrence of a zero valued integer expression that >>>> becomes a null pointer constant rather than an integer or floating-point >>>> value (and that isn't cast to pointer type). >>> Sure. >>> I once tried to persuade the compiler team where I worked to write a >>> "tool box" for diagnostics that would have a meta-language in which >>> users could describe the conditions that wanted to be diagnosed. The >>> idea was half-baked so it never went anywhere. >> >> No funding? > > No. As I said the idea was half-baked. I could not pin it down and > nether could anyone else. Without a clear specification, it could not > go forward. > shit happens! Sometimes, those half-baked ideas can turn out to be interesting.