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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Sender: dan@goofinder.dyndns.org Newsgroups: comp.lang.ada Subject: Rep spec for tagged type From: Daniel Wild Date: 13 Aug 2004 20:47:59 +0930 Message-ID: <87n00z8exk.fsf@goofinder.dyndns.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: ppp36-58.lns1.adl1.internode.on.net X-Trace: duster.adelaide.on.net 1092395880 150.101.36.58 (13 Aug 2004 20:48:00 +0950) Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!duster.adelaide.on.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:2714 Date: 2004-08-13T20:47:59+09:30 List-Id: I'm trying to create a rep spec for a tagged type and getting errors from GNAT that say `compoonent overlaps tag field of ...'. 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. So, I figure I need to shift my rep spec along by however big the tag is. How can I find the size of this? (I'd rather do it properly that assume it's 32 bits on my machine). Thanks, Dan.