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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,29f36805b9a20fe8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 07:32:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: Subject: Re: Streams in Ada Message-ID: <410y6.276$UK4.27383@www.newsranger.com> Date: Mon, 02 Apr 2001 14:29:20 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 986221760 209.208.22.130 (Mon, 02 Apr 2001 10:29:20 EDT) NNTP-Posting-Date: Mon, 02 Apr 2001 10:29:20 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6345 Date: 2001-04-02T14:29:20+00:00 List-Id: In article , Florian Weimer says... > >Ted Dennison writes: > >> I generally feel better calculating it anyway, just to be safe (and >> portable). Just use the following declaration: >> >> Bytes_Per_Element : constant := (Ada.Streams.Stream_Element'Size + 7) / 8; > >This gives the wrong result on a PDP-10, I think. ;-) There's an Ada compiler for the PDP-10? Who says we aren't cutting-edge! :-) --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com