comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-dejanews.com>
Subject: Re: Get_Immediate warning, (was: How to get a character?)
Date: 1999/04/15
Date: 1999-04-15T00:00:00+00:00	[thread overview]
Message-ID: <7f5409$od5$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 87zp4aud4a.fsf@bglbv.my-dejanews.com

In article <87zp4aud4a.fsf@bglbv.my-dejanews.com>,
  bglbv@my-dejanews.com wrote:
> Robert Dewar <robert_dewar@my-dejanews.com> writes:
>
> > In article <87hfqkgnrm.fsf@bglbv.my-dejanews.com>,
> >   bglbv@my-dejanews.com wrote:
> >
> > > The standard is clearly written under the assumption
that
> > > interactive input isn't normally buffered more than
one
> > > line at a time, but this doesn't seem to be even an
> > > Implementation Advice, much less a requirement.
> >
> > That's quite wrong.
>
> Sorry, I should have been more specific: the description
> of Text_IO in the standard is written under the
> assumption...

Nope, the most you can say is that the addons (get
immediate and flush) are written with this assumption.
But these are addons to a largely unchanged spec that
was written with NO thought of interactive IO at all.

> I'll support my claim by pointing you to the last
> sentence in A.10(2) which talks of "an end-of-line to
> signal availability". It does so in such a casual way
> that I would not construe that remark as normative; but
> as an indication of what the authors had in mind I
> find it excellent.

But that sentence *is* one of the glued on sentences.
Just compare this para with RM83 (14.3(2)).

> > Ada 83 standard is written that way, and the Ada 95
> > standard copies the definitions, adding only Flush and
> > Get_Immediate, both of which are pretty much completely
> > implementation dependent.
>
> "Pretty much completely" isn't a technical term either,
> is it?

I have defined this precisely by showing you EXACTLY what
the RM has to say that is normative about these functions.
We *do* know that Get_Immediate gets a character, so it
is not *completely* implementation dependent, but that's
EXACTLY the uninteresting part of Get_Immediate, what is
interesting is *how* it gets it, and this is left as ID.
That's *exactly* what I meant by PMCID :-)

THe problem of Text_IO in interactive environments is
well understood, and it was a quite deliberate decision
NOT to try to address it in the Ada 95 design. The general
feeling was that it was too broken to get exactly right,
and not broken enough to be worth a major kludging up.
At the last minute the Get_Immediate and Flush bandaids
were applied to stop the patient from bleeding to death :-)
But plastic surgery was beyond the budget!


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-04-15  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 ` 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               ` Robert Dewar
1999-04-14  0:00                 ` bglbv
1999-04-15  0:00                   ` Robert Dewar [this message]
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               ` Larry Kilgallen
1999-04-14  0:00             ` JS
1999-04-14  0:00               ` Robert Dewar
1999-04-19  0:00                 ` Robert A Duff
1999-04-10  0:00 ` How to get a character? David C. Hoos, Sr.
1999-04-12  0:00   ` Jeff Carter
1999-04-12  0:00     ` Robert Dewar
1999-04-12  0:00     ` Larry Kilgallen
replies disabled

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