comp.lang.ada
 help / color / mirror / Atom feed
From: JS <john.doe@ddre.dk>
Subject: Re: Get_Immediate warning, (was: How to get a character?)
Date: 1999/04/14
Date: 1999-04-14T00:00:00+00:00	[thread overview]
Message-ID: <3714398E.B7E4D499@ddre.dk> (raw)
In-Reply-To: 7eva5j$npf$1@nnrp1.dejanews.com

Robert Dewar wrote:
> 
> In article <371304D4.81D40292@ddre.dk>,
>   JS <john.doe@ddre.dk> 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, 

.. <snip diverse interesting stuff>

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,




  parent reply	other threads:[~1999-04-14  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-10  0:00 How to get a character? Ben Barth
1999-04-10  0:00 ` David C. Hoos, Sr.
1999-04-12  0:00   ` Jeff Carter
1999-04-12  0:00     ` Larry Kilgallen
1999-04-12  0:00     ` Robert Dewar
1999-04-10  0:00 ` Matthew Heaney
1999-04-10  0:00   ` bglbv
1999-04-10  0:00     ` Matthew Heaney
1999-04-12  0:00       ` Fraser Wilson
1999-04-13  0:00         ` Get_Immediate warning, (was: How to get a character?) JS
1999-04-13  0:00           ` Robert Dewar
1999-04-13  0:00             ` bglbv
1999-04-14  0:00               ` Larry Kilgallen
1999-04-14  0:00               ` Robert Dewar
1999-04-14  0:00                 ` bglbv
1999-04-15  0:00                   ` Robert Dewar
1999-04-16  0:00                     ` Matthew Heaney
1999-04-16  0:00                       ` Robert Dewar
1999-04-18  0:00                         ` Jean-Pierre Rosen
1999-04-19  0:00                     ` Robert A Duff
1999-04-14  0:00             ` JS [this message]
1999-04-14  0:00               ` Robert Dewar
1999-04-19  0:00                 ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox