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,d2c23a44c4c8fd6b X-Google-Attributes: gid103376,public From: sparre@meyer.fys.ku.dk (Jacob Sparre Andersen) Subject: Re: fixed point types over an interface Date: 1997/02/17 Message-ID: <1997Feb17.181818.3508@news.nbi.dk>#1/1 X-Deja-AN: 219562265 References: <32FBB550.41C67EA6@efogm.msd.ray.com> Newsgroups: comp.lang.ada Date: 1997-02-17T00:00:00+00:00 List-Id: Laurent Pautet (pautet@inf.enst.fr) wrote: |^^^^^^^^^^ | Because it doesn't apply to Ada :-) For instance: | | XDR says : | | The representation of all items requires a multiple of four bytes (or | 32 bits) of data. | | LRM says : | | For composite types, the Write or Read attribute for each component is | called in a canonical order ... Read and Write should use the smallest | number of stream elements needed to represent all values in the base | range of the scalar type. ^^^^^^^^^^ Is there anything that prevents the "stream elements" to fill 32 bits? If I read 13.13.1 in the LRM correctly, then there's absolutely nothing that prevents type Stream_Element from being declared as "mod 32". Greetings, Jacob -- Jacob Sparre Andersen http://www.nbi.dk/%7Esparre/ Center for Chaos and Turbulence Studies Phone: (+45) 39 65 53 51 The Niels Bohr Institute (+45) 35 32 53 05 -- "In the long run we are all dead", John Maynard Keynes (1923)