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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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 Path: g2news2.google.com!postnews.google.com!25g2000yqn.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: What is the best method for transmitting objects/tagged records? Date: Tue, 7 Jun 2011 07:19:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <96fa41f6-fe4f-4067-a524-f9e5d94b6137@25g2000yqn.googlegroups.com> References: <5e5bc0bb-8b39-4655-8c9d-f93ec24b3529@p21g2000yqh.googlegroups.com> NNTP-Posting-Host: 24.230.151.194 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1307456358 29841 127.0.0.1 (7 Jun 2011 14:19:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Jun 2011 14:19:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 25g2000yqn.googlegroups.com; posting-host=24.230.151.194; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:20645 Date: 2011-06-07T07:19:18-07:00 List-Id: On Jun 6, 10:25=A0pm, "Randy Brukardt" wrote: > "Shark8" wrote in message > > news:5e5bc0bb-8b39-4655-8c9d-f93ec24b3529@p21g2000yqh.googlegroups.com... > > > > > > > > > > >... > >"(75) > > =A0 =A0S'External_Tag > > > =A0 =A0 =A0 =A0S'External_Tag denotes an external string representation= for > >S'Tag; it is of the predefined type String. External_Tag may be > >specified for a specific tagged type via an > >attribute_definition_clause; the expression of such a clause shall be > >static. The default external tag representation is implementation > >defined. See 3.9.2 and 13.13.2." > >Per > >http://www.univ-orleans.fr/mapmo/systeme/Recup/systeme/logiciels/GRAS... > > >* I had an application that did some working on external tags to check/ > >change the structure a bit; then one day I updated GNAT and, lo and > >behold, everything there quit working because GNAT's external-tag > >formatting had been changed. > > If you are depending on the format of the external tags, you surely shoul= d > not be depending on the default values for external tag for those particu= lar > tags. But you can specify these youself, and if you do that compiler won'= t > change them. Note that the text you quote says that 'External_Tag can be > specified. > > This is exactly how you stream tagged values -- there too it is a bad ide= a > to depend on the default external tags unless everything will always use = the > same compiler version everywhere. Specifying the tags is better. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Randy. Good idea. Thank you.