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,ea5071f634c2ea8b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.36.6 with SMTP id m6mr2913565pbj.4.1321950557135; Tue, 22 Nov 2011 00:29:17 -0800 (PST) Path: lh20ni4588pbb.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Generic-Package Elaboration Question / Possible GNAT Bug. Date: Tue, 22 Nov 2011 09:29:17 +0100 Organization: cbb software GmbH Message-ID: <16ipwvpdavifr$.17bxf7if7f6kh$.dlg@40tude.net> References: <7bf9bc32-850a-40c6-9ae2-5254fe220533@f29g2000yqa.googlegroups.com> <4295dc09-43de-4557-a095-fc108359f27f@y42g2000yqh.googlegroups.com> <3snehoqgs8ia$.1nobjem6g6hx6$.dlg@40tude.net> <128rdz2581345$.c4td19l7qp9z$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ARmOcGB+2dBIwZUEYVS5Gg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14507 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2011-11-22T09:29:17+01:00 List-Id: On Mon, 21 Nov 2011 21:40:30 +0100, J-P. Rosen wrote: > Le 21/11/2011 14:50, Dmitry A. Kazakov a �crit : >> Conversion of errors into exceptions is an extremely bad idea. The same >> fault is represented by dynamic pre-/pos-conditions, assertions, >> accessibility checks, tag errors. >> > Sure. If you have a better idea (short of redesigning the whole language > or making unacceptable upward incompatibilities), I'm sure the ARG would > be deligthed to hear. We discussed the issues ad nauseum and could not > find any other solution. Hmm, if pre-/post-conditions were a solution, what was the problem? Regarding run-time exceptions, these are not errors, they are a part of program's behavior. I think that a solution is not in adding new sources of exceptions, but by making exceptions contracted (using conditional contracts, e.g. "I don't raise, if you don't", "I don't raise if there is N units of memory free" etc). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de