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,c4bd2a19251049b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: best practice: error handling Date: Sat, 11 Jun 2011 18:26:47 +0200 Organization: cbb software GmbH Message-ID: <1h0rtlguf55n9$.1bprjwe7kolfn.dlg@40tude.net> References: <0b95a2a1-6e3d-4ad1-a832-e3099a9bce37@v8g2000yqb.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: +19CLyKI50couyI9Z4Jwlg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:20727 Date: 2011-06-11T18:26:47+02:00 List-Id: On Sat, 11 Jun 2011 15:31:39 +0200, Yannick Duchêne (Hibou57) wrote: > I would say : at least the “errno” strategy, is not concurrency friendly. But errno (and Windows' GetLastError) is not a return code. The return code is a local object which effect is always limited to the current task, as well as the exception (when it starts propagating). errno is a global scope function / object, syntactically unrelated to the original call. errno is bad even without any concurrency. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de