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: Mon, 4 Dec 2017 20:27:57 -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: Mon, 4 Dec 2017 20:27:57 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="88829e7dd6a46b03251d3d3fa511f519"; logging-data="23396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RcEDzBjqYecgp/oPq6Fv47OHEaC/oviw=" User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:XE3923lB85Ky6LxluD/QsyaMaWc= sha1:+VEwIBbWT3Sk7T6YCKNRavI6OGE= Xref: reader02.eternal-september.org comp.lang.ada:49363 Date: 2017-12-04T20:27:57+00:00 List-Id: Dmitry A. Kazakov wrote: > In Ada 83 exception was not a first-class type. Still isn’t. > In terms of tagged types it is like this: Exceptions may be understood to be part of control structure. Doing so lets you see them as neither objects nor subprograms. So, in exceptional situations, the program isn’t moving along *if*s and *loop*s and calls; rather, a different mechanism of jumping is triggered. You can handle the situation by referring to its name, the exception’s, in a handler. Other answers explain what to do if the name is not in scope and how to print interesting information about what named exception has caused the situation.