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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d224046a810970a X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Redefining 'Class'Output Date: 1999/07/09 Message-ID: <37860D43.2E7807B1@averstar.com>#1/1 X-Deja-AN: 499118947 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-07-09T00:00:00+00:00 List-Id: Matt Brennan wrote: > > Hiya, > I am trying to stream objects of various tagged types between two > boxes. > > There are different compilers at each end with differing > Ada.Tags.External_Tags. One compiler (GNAT) has an external > representation the same as the Ada.Tags.Expanded_Name (defined by the > language to be all capitals) and the other compiler uses the same string > but all lower case. One solution is to specify the value of External_Tag for each type. External_Tag is a specifiable attribute. E.g.: for Tagged_Type_T'External_Tag use "P.TAGGED_TYPE_T"; See RM 95 13.3(75). > In order to guarantee compatibility at each end, i wish to redefine the > 'Class'Output (and 'Class'Input) for my base type to use the (language > defined) Expanded_Name in the stream rather than the external tag... > like so: This is definitely the hard way, and I wouldn't recommend it... > ... > Any assistance would be great. > > Thanks, > > matt > > -- > -- Matt Brennan || Vision Systems Ltd || +61 8 8300 4686 > -- -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA