From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Size of 0..255 is not 8 bits?
Date: 1998/05/14
Date: 1998-05-14T00:00:00+00:00 [thread overview]
Message-ID: <dewar.895191878@merv> (raw)
In-Reply-To: 6jerfm$am5@gcsin3.geccs.gecm.com
Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk> wrote:
>Other question: If the rest of a stream is too short for a
>T'Read to succeed, what is supposed to happen? Constraint error?
Quoting the GNAT sources ... (s-stratt.adb)
Err : exception renames Ada.IO_Exceptions.End_Error;
-- Exception raised if insufficient data read (note that the RM implies
-- that Data_Error might be the appropriate choice, but AI195-00132
-- decides with a binding interpretation that End_Error is preferred).
Note that it is a little odd that streams (which have nothing to do with
IO) should raise an exception in Ada.IO_Exceptions, but the AI is clear
as to the preference for this.
next prev parent reply other threads:[~1998-05-14 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-14 0:00 Size of 0..255 is not 8 bits? Markus Kuhn
1998-05-13 0:00 ` Matthew Heaney
1998-05-14 0:00 ` Tom Moran
1998-05-14 0:00 ` Robert Dewar
1998-05-14 0:00 ` Markus Kuhn
1998-05-14 0:00 ` John McCabe
1998-05-14 0:00 ` Robert Dewar [this message]
1998-05-14 0:00 ` Robert Dewar
1998-05-14 0:00 ` Simon Pilgrim
1998-05-15 0:00 ` Markus Kuhn
1998-05-15 0:00 ` Samuel T. Harris
1998-05-15 0:00 ` Tucker Taft
1998-05-15 0:00 ` Joe Gwinn
1998-05-16 0:00 ` Robert Dewar
1998-05-17 0:00 ` Joe Gwinn
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox