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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a0be06fbc0dd71f1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rcn.net!news.rcn.net.POSTED!not-for-mail NNTP-Posting-Date: Sun, 06 Jan 2008 07:03:01 -0600 Date: Sun, 06 Jan 2008 08:03:08 -0500 From: "Frank J. Lhota" Reply-To: FrankLho.NOSPAM@rcn.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: The future of Ada is at risk References: <20071229040639.f753f982.coolzone@it.dk> <1199452391.7932.27.camel@K72> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 209.6.221.35 X-Trace: sv3-had7XArvGNADFWkuxAKusTq0ELZWe85Y5+YP8bVsj3F0vnN8pwVDM5iNy1Rmd/VMxGXk0jtZCeUpP+c!BelyNmwGcFEgP3258gylU6OATfgnu/r+UQU8gEavhX1EUBDDA9VVGauAD11/vcDY2Wo4u1U/iTVU X-Complaints-To: abuse@rcn.net X-DMCA-Complaints-To: abuse@rcn.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Xref: g2news1.google.com comp.lang.ada:19240 Date: 2008-01-06T08:03:08-05:00 List-Id: Agyaras wrote: > ... > > Talking about safety and ergonomics: how do you tell which Ada > subprograms raise which exceptions? Well, you cannot. The Java designers > got this absolutely right: the method signatures can contain a throws() > clause. Either you catch an exception or let it propagate and the > compiler complains if you omit the throws() in the latter case. It would > be nice if the Ada2005 standard could be amended with a similar > mechanism. If it can be done in Java, then it certainly could be done in > Ada! :-) Java-style statically enforced exception contracts does have some drawbacks, however. See ttp://groups.google.com/group/comp.lang.ada/msg/7dfb6f87f47d8db8 > "Make computers work so that humans won't have to" > > A > -- "All things extant in this world, Gods of Heaven, gods of Earth, Let everything be as it should be; Thus shall it be!" - Magical chant from "Magical Shopping Arcade Abenobashi" "Drizzle, Drazzle, Drozzle, Drome, Time for this one to come home!" - Mr. Wizard from "Tooter Turtle"