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-Thread: 103376,842a00dafb20dd88 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!teaser.fr!newsfeed.stueberl.de!news-mue1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Rep spec for tagged type Date: Fri, 13 Aug 2004 14:08:07 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <87n00z8exk.fsf@goofinder.dyndns.org> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1092406087 9491 134.91.1.34 (13 Aug 2004 14:08:07 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 13 Aug 2004 14:08:07 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:2718 Date: 2004-08-13T14:08:07+00:00 List-Id: Daniel Wild wrote: : : I gather this means that GNAT stores the tag for the type at the : beginning of the memory used for the type and I'm trying to overwrite : that by starting my rep spec at 0. There may be another possibility, if the representation is important for some data items in the objects, but not for all of the object. You could create a plain record type "around" the data that you want in your tagged type. Then provide a representation clause for the plain record, and declare a component of the plain record type in the tagged type. -- Georg