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,233f0e04e488a4a2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Size of 0..255 is not 8 bits? Date: 1998/05/14 Message-ID: #1/1 X-Deja-AN: 353358130 References: <355A436E.11F76529@cl.cam.ac.uk> <355AEA1D.6C292667@cl.cam.ac.uk> <6jerfm$am5@gcsin3.geccs.gecm.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 895191968 2589 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-05-14T00:00:00+00:00 List-Id: Markus Kuhn 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.