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!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Thu, 30 Jul 2015 13:46:11 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <2df4698f-4c8e-457c-822d-209cb2f8ab5e@googlegroups.com> <014427b1-ff7a-4a69-82e6-0330af77ed96@googlegroups.com> <91f88d79-197c-419f-84a8-908e05967a2c@googlegroups.com> <135c2b00-d13c-4f5d-a586-8aca442d363b@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1438281973 25824 24.196.82.226 (30 Jul 2015 18:46:13 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 30 Jul 2015 18:46:13 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:27234 Date: 2015-07-30T13:46:11-05:00 List-Id: "EGarrulo" wrote in message news:b68e14e7-e304-4220-81f5-67a88cef5767@googlegroups.com... ... >> Do you mean that exceptions of Ada cannot be used for indirecting >> non-local control flow with the help of exception objects? > >Exceptions in Ada cannot carry contextual information, nor they >can be chained (albeit you could hack them to do both). Huh? Every Ada implementation has some sort of contextual information in the Exception_Occurrence. The language doesn't try to specify what is available there, because that would necessarily prevent better implementations. (For instance, Janus/Ada includes a subprogram traceback in the Exception_Occurrence.) I'm not sure what you mean by "chained". Reraise works (and does not erase the context in Janus/Ada, perhaps it does in other implementations). > Where is the usefulness of knowing that something has gone awry, > without any context? For example: "'File not found?' What file > was the program trying to open, and why?" Again, every real Ada implementation provides that information in the Exception_Message. Trying to specify that in a language standard would have been a never-ending task, so it's implementation-defined. But implementers don't intentionally make their implementations useless... Randy.