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,e64088334cf5790e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-13 10:24:45 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!world!news From: Robert A Duff Subject: Re: Exchanging objects between programs with different inheritance hierarchies User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 13 Nov 2002 18:23:32 GMT Content-Type: text/plain; charset=us-ascii References: <3DD29333.5070600@acm.org> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:30825 Date: 2002-11-13T18:23:32+00:00 List-Id: Jeffrey Carter writes: > Steven Deller wrote: >... Using unchecked_conversion depends > > on the tags being integral to the > > record structures. On GNAT they are not, so the code fails. Is this really true? I thought all Ada compilers store the tag field as a field in the record (although not always at the same offset)? What is GNAT doing that messes up your unchecked conversions? Maybe I'm missing your point. - Bob