From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Help understanding the benefits of Ada's exception model Date: Thu, 26 Jun 2014 19:55:27 +0300 Organization: Tidorum Ltd Message-ID: References: <53ac3b56$0$6654$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net kHneLBTAv/7Zwo4F7wAJSgxJAPX+c6VtTret0/hFiwE1sr8Yuu Cancel-Lock: sha1:n2CuC5wF4yT7xtrhp61CI+v9pwA= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <53ac3b56$0$6654$9b4e6d93@newsspool3.arcor-online.net> Xref: number.nntp.dca.giganews.com comp.lang.ada:187262 Date: 2014-06-26T19:55:27+03:00 List-Id: On 14-06-26 18:25 , G.B. wrote: > On 26.06.14 16:28, Patrick wrote: >> Sorry for answering my own post. I think I have not used the terms >> unchecked exception and check exceptions properly. Better terms would >> be handling exceptions and handling error codes. >> > Right, and the usual answer is that _if_ you want non-local > transfer of control, then checking error codes just won't do. > You'd be using something like setjmp/longjmp in C. > the alternative is to handle error codes all the way up the > call chain. The resulting code is more spaghetti-like and it > will mix both return values and special return values in > the same syntactic structure. > > I can't think of a language in use today that does not have > either exception handling, or else some way to check, at compile > time, that none can occur. Fortran? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .