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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: Exception_Occurence and language designers Date: Tue, 5 Dec 2017 00:16:49 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 5 Dec 2017 00:16:49 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="4556c4f394be1925cb1826cd6847a1c2"; logging-data="20810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PDWxYpYhlEjnS56TKjS/d1GZcuD4TaJY=" User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:P0i18LMmut1eqBku+7RSHkECRYw= sha1:SjzBfSLOKqeSFBNyc2saKet81Ac= Xref: reader02.eternal-september.org comp.lang.ada:49372 Date: 2017-12-05T00:16:49+00:00 List-Id: Dmitry A. Kazakov wrote: > On 2017-12-04 21:27, G. B. wrote: >> Dmitry A. Kazakov wrote: >> >>> In Ada 83 exception was not a first-class type. >> >> Still isn’t. > > But its "class-wide" type Exception_Occurrence is. Exception_Occurrence feels like an enumeration, to me at least, albeit of places in a program, thus of a rather special set of “values”. > Then it became clear that the exception should carry > user-defined and other information. User-defined information being strings, and other information being places to be embedded in strings, plus names of exceptions. How about this: the idea of creating normal, typed objects as payload of wild jumps in abnormal (exceptional) situations is rather optimistic.