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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac2397ce800de518 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-04 08:51:57 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!opentransit.net!jussieu.fr!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: adasockets and adatypes Date: Tue, 4 Sep 2001 10:53:04 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <20010904115244.24236db3.tonygair@blueyonder.co.uk> <1v6l7.3307$4z.6132@www.newsranger.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 999618717 92359 137.194.161.2 (4 Sep 2001 15:51:57 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 4 Sep 2001 15:51:57 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:12703 Date: 2001-09-04T10:53:04-05:00 ----- Original Message ----- From: "Ted Dennison" Newsgroups: comp.lang.ada To: Sent: Tuesday, September 04, 2001 10:33 AM Subject: Re: adasockets and adatypes > In article , David C. Hoos > says... > >This is simply not so. If the record component types have user-defined > >endianness-independent stream attributes, then the data will have the > > How does one do this for language-defined types? Every Ada compiler I've tried > it on (including gnat 3.13p just now) only allows one to redefine the IO > attributes in the same declaration section in which the type is declared. One can't. That's why when stream format is important, one should define his own types -- although I've never found a reason not to use the language-defined type String -- since I've only dealt with machines in which the sizes of characters and stream elements have been identical -- i.e., 8. > > If you only have 2 implementations to get talking, it is fairly easy to massage > one end until it talks like the other. That isn't the same thing as true > portability. I agree. one should define what the stream should look like from the beginning. For example, for Annex E, GNAT uses the XDR format defined by Sun. > > --- > T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html > home email - mailto:dennison@telepath.com > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >