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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2d2df3e9ad18fa63 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-21 12:14:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: ISO/IEC 14519 - Ada POSIX binding Date: Sat, 21 Jun 2003 21:14:12 +0200 Message-ID: <87vfuzqm4b.fsf@deneb.enyo.de> References: <3EF338C5.2010005@cogeco.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1056222853 3066 212.9.189.171 (21 Jun 2003 19:14:13 GMT) X-Complaints-To: Cancel-Lock: sha1:aHzSioVFd6GAgR+1UaAmX9DKnSY= Xref: archiver1.google.com comp.lang.ada:39533 Date: 2003-06-21T21:14:12+02:00 List-Id: tmoran@acm.org writes: > I have the paper version of IEEE 1003.5-1992 which specifically has a > discussion of why that Ada binding to POSIX uses exception handling > instead of errno. Even with Ada 83, they should have used an errno-like variable and a single exception. (In Ada 95, you can encode the error code in the exception message.) The long exception list results in lots of "when others =>" clauses silently discarding the exception if you want to have reliable code which runs on real-world systems.