Deutsch English Français Italiano |
<v4olko$flpo$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c Subject: Re: Whaddaya think? Date: Mon, 17 Jun 2024 02:38:16 -0400 Organization: A noiseless patient Spider Lines: 17 Message-ID: <v4olko$flpo$3@dont-email.me> References: <666ded36$0$958$882e4bbb@reader.netnews.com> <20240616015649.000051a0@yahoo.com> <v4lm16$3s87h$4@dont-email.me> <v4lmso$3sl7n$1@dont-email.me> <v4lr0m$3tbpj$1@dont-email.me> <8734pd4g3s.fsf@nosuchdomain.example.com> <v4ltuj$3trj2$1@dont-email.me> <87ed8w3025.fsf@nosuchdomain.example.com> <868qz4kty7.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 17 Jun 2024 08:38:37 +0200 (CEST) Injection-Info: dont-email.me; posting-host="a7b132bb65603ea19d45fd3964c95a9e"; logging-data="513848"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A14pwxpY3/6EtfHK1XfcRgAkGZIAMkaQ=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:2gzndEEs5YfSC8cncWeA4Izx1jE= Content-Language: en-US In-Reply-To: <868qz4kty7.fsf@linuxsc.com> Bytes: 2096 On 17.06.2024 07:40, Tim Rentsch wrote: > Keith Thompson <Keith.S.Thompson+u@gmail.com> writes: > >> The worst consequence of undefined behavior is having your code >> appear to "work". > > Personally I think causing a missle launch that started a > worldwide thermonuclear war would be a worse consequence. > YMMV. The standard doesn't say anything to prohibit such a consequence, but in real life such an outcome is possible only if your program is executing in an environment that allows it to send out launch messages to real missiles. In such a context, a program that was intended to launch a missile strike, and seemed to do so, but actually failed to do so, would arguably be worse. If the enemy knows that you are running such defective software, that enemy might not be deterred from attacking.