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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4bd2a19251049b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h7g2000yqa.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: best practice: error handling Date: Tue, 31 May 2011 10:57:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <99ac6dae-df9c-4627-ab2c-82f873977cc6@h7g2000yqa.googlegroups.com> References: <0b95a2a1-6e3d-4ad1-a832-e3099a9bce37@v8g2000yqb.googlegroups.com> NNTP-Posting-Host: 91.7.77.65 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1306864693 21049 127.0.0.1 (31 May 2011 17:58:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 31 May 2011 17:58:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h7g2000yqa.googlegroups.com; posting-host=91.7.77.65; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:20568 Date: 2011-05-31T10:57:58-07:00 List-Id: On 31 Mai, 19:13, "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776...@t-domaingrabbing.de> wrote: > On the other hand, if you want a function to return its result, because it > looks more natural, you cannot use an "Success : out Boolean", so it may be > more convenient to raise an exception for errors instead of using an "out"- > parameter for the result. Ada 2012 will add [in]out-parameters to functions. Hope the amendment will soon be finished. Actually this was due in April, as far as I know. But polishing the text and correcting any errors introduced is an overwhelming job.