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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,463c997594f91391 X-Google-Attributes: gid103376,public From: JS Subject: Re: Get_Immediate warning, (was: How to get a character?) Date: 1999/04/14 Message-ID: <3714398E.B7E4D499@ddre.dk>#1/1 X-Deja-AN: 466196733 Content-Transfer-Encoding: 7bit References: <370EE07D.67C71458@dave-world.net> <87k8vkag6f.fsf@bglbv.my-dejanews.com> <923936702.835.91@news.remarQ.com> <371304D4.81D40292@ddre.dk> <7eva5j$npf$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@uni2.dk X-Trace: news.get2net.dk 924072731 130.228.34.2 (Wed, 14 Apr 1999 08:52:11 MET DST) Organization: UNI2 Internet Kunde MIME-Version: 1.0 NNTP-Posting-Date: Wed, 14 Apr 1999 08:52:11 MET DST Newsgroups: comp.lang.ada Date: 1999-04-14T00:00:00+00:00 List-Id: Robert Dewar wrote: > > In article <371304D4.81D40292@ddre.dk>, > JS wrote: > > Since Get_Immediate is much less used, > > You can never be sure if it really works as it is > > supposed to until you have verified it yourself for the > > compiler at hand. > > > > One recent example is Object-Ada version 7.1.1 where it > > did not ! > > That's not the right point of view. The issue here is > one of implementation dependence, .. Sorry for failing to say, that the error in OA 7.1.1 was with the non-blocking get_immediate(ch,avail), and that the error has been corrected in OA 7.1.2. Get_immediate(ch,avail) is supposed to return immediately, whether a key is pressed (Avail=FALSE) or not (Avail=TRUE). However, using OA 7.1.1, this only happened some of the time, not every time. Some times, get_immediate(ch,avail) instead would wait for a keypress, just like the "normal" get_immediate(ch). I would not call this an implementation dependance, but a compiler bug. And I maintain, that the prudent user must be more careful of running into hitherto unknown compiler bugs when he is using the outskirts of the language, than when staying with mainstream features. Greetings,