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,fe62d63cd6fe976f X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Sequential_Mixed_IO (DEC) for GNAT Date: 1996/03/25 Message-ID: #1/1 X-Deja-AN: 144236547 references: <4j794u$ldn@ra.nrl.navy.mil> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-03-25T00:00:00+00:00 List-Id: Doug said "If you can know of an elegant way to get access to mixed types from a binary file, please let me know. I heard mention of streams (?) under Ada95." Yes, we know an elegant way, and we will be happy to let you know. Have a look at Ada.Streams.Stream_IO. I think you would find it more profitable to rummage around in annex A of the RM to see if what you want is already there, rather than rummaging around in the private runtime packages in GNAT! Certainly you should move to Ada 95. The only reason for sticking to Ada 83 is to maintain caompatibility with Ada 83 compilers, and if you are withing GNAT internal packages, you are abandoning that anyway. Pure Ada 83 code will compile correctly with the -gnat83 switch in GNAT. We do not know of exceptions to this. Of course if you start withing internal private packages that are children of System, you are outside Ada 83. For GNAT, the -gnat83 switch is like a configuration pragma, the entire program must be compild wit this switch consistently.