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,6cc2d0131145e263 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-10 03:36:27 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Question about "for X'Size use ..." Date: 10 Aug 2001 05:36:22 -0500 Organization: LJK Software Message-ID: References: <3B72C23E.62F7B3D2@san.rr.com> <871ymk480x.fsf@deneb.enyo.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 997439281 8774 192.135.80.34 (10 Aug 2001 10:28:01 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 10 Aug 2001 10:28:01 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:11750 Date: 2001-08-10T05:36:22-05:00 List-Id: In article <871ymk480x.fsf@deneb.enyo.de>, Florian Weimer writes: > dewar@gnat.com (Robert Dewar) writes: > >>> There is no effect because the stream operations operate on the base >>> type, and you can't specify the size of a base type. >> >> This is incorrect, please see the latest AI on this topic > > AI 270 is not a mere clarification, it changes the semantics of the > Ada language. I don't think these become part of the language > automatically. > > (I think that AI 270 is pointless. Stream_Size won't give any > additional portability unless the order of stream elements can be > controlled, and the method of storing the sign, and the situations > were the range of type neither is not symmetric around zero.) I have not worked with streams, but was wondering if anyone had tried using ASN.1 to achieve interoperability. It solves endian problems and the DER representation is rather firm about "only one way to express something". It seems to me that Ada folk should be willing to build on existing standards, where suitable.