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,3e11ef4efc073f6b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.tu-darmstadt.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: requeue with abort and timed call Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2a60b044-6a5c-4ce6-93e6-6eeefc8806c3@l33g2000pri.googlegroups.com> <1f6rcb1qwt7vx.1mckzyk9ucohf.dlg@40tude.net> <84c56781-1cb1-4d86-be14-e66fc9fdade6@w1g2000prk.googlegroups.com> <7p8onuvzdz18$.1m1dq8n3b52q5.dlg@40tude.net> <9j9ajg.3a7.ln@hunter.axlog.fr> <2a0a1de3-6736-4478-9378-50b8895fa20d@r15g2000prh.googlegroups.com> <133a14c1-efc1-4a27-bc66-cff24a75ef93@z28g2000prd.googlegroups.com> <4uQ7l.509148$yE1.49118@attbi_s21> Date: Mon, 5 Jan 2009 21:47:37 +0100 Message-ID: NNTP-Posting-Date: 05 Jan 2009 21:47:41 CET NNTP-Posting-Host: 3dfe10ec.newsspool1.arcor-online.net X-Trace: DXC=lOK0oS;MaQC74okIm;?DS@ic==]BZ:afN4Fo<]lROoRA^YC2XCjHcbITPFk8flE51ADNcfSJ;bb[EIRnRBaCd On Mon, 05 Jan 2009 20:28:14 GMT, Jeffrey R. Carter wrote: > Dmitry A. Kazakov wrote: >> >> There is an easy way out. They could say that GNAT's Ada.Text_IO.Put_Line >> is not potentially blocking. > > No, the ARM specifies that all the operations of the language-defined I/O pkgs > are potentially blocking. RM only says "In particular, the subprograms of the language-defined input-output packages that manipulate files (implicitly or explicitly) are potentially blocking." 9.5.1 (18). If Put_Line does not manipulate files, then it is OK. "file" is not defined anyway. >> Here they are in violation. Since they detected a delay statement within a >> protected action, they should have raised Protected_Error. > > I think the ARM gives the implementation the right to decide whether or not to > raise an exception if it detects the problem. But RM 9.5.1 (17) is specific "If the bounded error is detected, Program_Error is raised." No permission given to ignore it. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de