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!p21g2000yqh.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: What is the best method for transmitting objects/tagged records? Date: Mon, 6 Jun 2011 18:24:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5e5bc0bb-8b39-4655-8c9d-f93ec24b3529@p21g2000yqh.googlegroups.com> References: 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 1307409865 17696 127.0.0.1 (7 Jun 2011 01:24:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Jun 2011 01:24:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p21g2000yqh.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:20630 Date: 2011-06-06T18:24:25-07:00 List-Id: On Jun 6, 8:11=A0pm, Jeffrey Carter wrote: > On 06/06/2011 05:26 PM, Shark8 wrote: > > > > > So, Dimitry kindly pointed me to the correct way of doing so: > > - Entry: Read String > > - Entry: Write Tag > > - Entry: Write Object over a class-wide variable which had been > > initialized to the correct type via the dispatching constructor. > > > But the package Ada.Tags is of the wrong type/level to be included in > > a remote_types or remote_interface package, so I cannot use that > > method. > > Possibly use the external tag for communication, converting to a tag at t= he > destination? > > -- > Jeff Carter > "I fart in your general direction." > Monty Python & the Holy Grail > 05 Well, I can't even WITH Ada.Tags w/o breaking the rules for the DSA package-pragmas... and even if I could I'd be somewhat hesitant* because they're implementation defined: "(75) S'External_Tag S'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/GRASP_= Documentation/ada95lrm/rm9x-13-03.html * 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.