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!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!feeds.phibee-telecom.net!newsfeed.freenet.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.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 10:30:27 +0100 Message-ID: NNTP-Posting-Date: 05 Jan 2009 10:30:29 CET NNTP-Posting-Host: eaec7e3b.newsspool2.arcor-online.net X-Trace: DXC=EE2a5jhZX=I[6=1B@oB@@@A9EHlD;3YcB4Fo<]lROoRA^YC2XCjHcbI4XCjf8D;S`MDNcfSJ;bb[EIRnRBaCd[@l6B80c09>O?ekC X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4174 Date: 2009-01-05T10:30:29+01:00 List-Id: On Mon, 05 Jan 2009 02:48:05 GMT, Jeffrey R. Carter wrote: > Dmitry A. Kazakov wrote: >> >> No, it is perfectly legal to use Put_Line in protected actions *with* GNAT. >> >> GNAT implementation explicitly permits this use. So Jeffrey's comment was >> irrelevant here. > > No, the use of Ada.Text_IO.Put_Line in a protected action is a bounded error > with *all* compilers, GNAT included. A bounded error is an error, therefore this > use is an error for all compilers. There is an easy way out. They could say that GNAT's Ada.Text_IO.Put_Line is not potentially blocking. > What happens in the case of a bounded error is compiler dependent. GNAT 6.1.1 > gives me a warning if I use a delay statement in a protected operation, but > otherwise allows it. Another compiler might choose to raise Program_Error at run > time. Here they are in violation. Since they detected a delay statement within a protected action, they should have raised Protected_Error. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de