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-Thread: 103376,913ffb3586d7a026 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: What is the best method for transmitting objects/tagged records? Date: Thu, 09 Jun 2011 06:07:25 +0100 Organization: A noiseless patient Spider Message-ID: References: <47671647-1941-4bf2-ab34-578b4a853095@k16g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="19349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2wJj7PmnIaeuHan1ov/w3nIyl5G7WPBg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:sKT4j32bVWbxRKq5vg0/RHGv+oE= sha1:PjGoFWGJcyxfBW4YiEKQVeRTMP0= Xref: g2news1.google.com comp.lang.ada:19712 Date: 2011-06-09T06:07:25+01:00 List-Id: "Randy Brukardt" writes: > Right, but you don't need to use Ada.Tags (or anything tags) in order > to stream tagged types. Just use the provided T'Class'Input and > T'Class'Output attributes. For those to have portable results, you > need to specify your external tag values for your tagged types (we > previously discussed that). Not sure what you mean by 'portable' here, Randy; are compilers required to conform to standard representations on the wire? Because GNAT certainly doesn't out of the box (for example, it uses native byte order).