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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.7.50 with SMTP id 38mr26326091yho.0.1416930661729; Tue, 25 Nov 2014 07:51:01 -0800 (PST) X-Received: by 10.140.19.225 with SMTP id 88mr15260qgh.19.1416930661553; Tue, 25 Nov 2014 07:51:01 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!s7no1789418qap.1!news-out.google.com!w7ni50qay.0!nntp.google.com!w8no2283289qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 25 Nov 2014 07:51:01 -0800 (PST) In-Reply-To: <8f203a9a-6c7c-4614-bc7d-efa65bf10776@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.111.125.244; posting-account=Ies7ywoAAACcdHZMiIRy0M84lcJvfxwg NNTP-Posting-Host: 50.111.125.244 References: <0d8452a9-68c9-4835-b6f3-17407132ca9f@googlegroups.com> <8194a204-7b15-463d-a2fd-4d3ba342fe97@googlegroups.com> <8f203a9a-6c7c-4614-bc7d-efa65bf10776@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <69025c69-52fa-4893-b4bd-a66c5e732d68@googlegroups.com> Subject: Re: How to get nice with GNAT? From: brbarkstrom@gmail.com Injection-Date: Tue, 25 Nov 2014 15:51:01 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:23713 Date: 2014-11-25T07:51:01-08:00 List-Id: On Tuesday, November 25, 2014 10:07:04 AM UTC-5, ake.ragna... wrote: > Hello everybody, >=20 > This Ada gem is related to this discussion (and I just point it out since= I didn't see it pointed out earlier) > http://www.adacore.com/adaanswers/gems/gem-150out-and-uninitialized/ >=20 > Of course I always listen seriously to Jeff Carter but it's not obvious t= o me that doing "C in Ada" is bad. If I remember correctly Google employees= are recommended to avoid using exceptions when doing C++. The designers of= Google Go has gone great lengths to avoid the exception concept as much as= possible. In addition SPARK forbids usage of exceptions. >=20 > @Natasha: Sorry, don't have any useful input to you. But thanks for start= ing this discussion topic, and thanks for all input from everybody particip= ating! >=20 > Best regards, > =C5ke Ragnar Dahlgren Note that the Local procedure in the Gem does not contain an exception=20 handler. If it did, the "out" variable could be set to something sensible.= =20 The exception would be lowered and not propagated to the calling procedure. In that situation, the calling program might or might not even be aware of the exception except for the value of the variable copied out. The Gem does clarify how an unhandled exception would work. I appreciate that clarification. Thanks.