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,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-10 10:13:24 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Data portability with streams Date: 10 Aug 2001 10:13:23 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0108100913.42e2b744@posting.google.com> References: <9kbvsr$a02@augusta.math.psu.edu> <3B69DB35.4412459E@home.com> <3B6F312F.DA4E178E@home.com> <23lok9.ioi.ln@10.0.0.2> <3B70AB15.35845A98@home.com> <3B70C665.BBC5F000@home.com> <3B721BC3.76A2161C@home.com> <3B732365.81CFD607@home.com> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 997463604 31186 127.0.0.1 (10 Aug 2001 17:13:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Aug 2001 17:13:24 GMT Xref: archiver1.google.com comp.lang.ada:11776 Date: 2001-08-10T17:13:24+00:00 List-Id: Ted Dennison wrote in message news:... > I think one possible way to do this without causing a ton of work > would be to create a "translation generic" for each target (ASN.1 or > XDR) type. Hmmm. That might be worth experimenting with one day... In GNAT, this is most easily achieved by providing your own version of System.Stream_Attributes. We supply two, one corresponding to normal memory layout, and one corresponding to XDR.