Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C wish list Date: Sun, 24 Mar 2019 17:57:27 -0700 Organization: None to speak of Lines: 26 Message-ID: References: <18RkE.296542$DH4.255445@fx24.am4> <2J7lE.185089$1p7.119303@fx05.am4> <2PalE.135956$Ef4.37063@fx38.am4> <4BqlE.730757$RBa.544247@fx15.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="784bbd8fb1c90ff7036d4663e7b2295d"; logging-data="28212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BpB4kapT4VZdVkMgp3UGM" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:+1o+0K3m6tWMVQIlWZllSd6uOnA= sha1:jEmCpDfl8PGqaufnOUXdzfqa3yo= Xref: csiph.com comp.lang.c:142386 Bart writes: > On 24/03/2019 23:38, Keith Thompson wrote: >> David Brown writes: >> [...] >>> I've already told you. Most languages that I know of which compile to >>> assembly, and are aimed at high performance code, make signed integer >>> overflow undefined behaviour. Many tools for these languages provide >>> some help in debugging such code, with options that inserting run-time >>> checks (in the same way gcc and clang can do for C and C++). Languages >>> in this category include Pascal, Modula 2, Fortran, Ada, and Algol. >> [...] >> >> Ada requires an exception to be raised on signed integer overflow. > > What could the exception handler do? Especially on production code. There are plenty of resources for learning Ada, including freely available copies of the Ada language standard. There's even a comp.lang.ada newsgroup -- which this is not. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */