comp.lang.ada
 help / color / mirror / Atom feed
From: Daniel Wild <dan@example.com>
Subject: Rep spec for tagged type
Date: 13 Aug 2004 20:47:59 +0930
Date: 2004-08-13T20:47:59+09:30	[thread overview]
Message-ID: <87n00z8exk.fsf@goofinder.dyndns.org> (raw)

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.



             reply	other threads:[~2004-08-13 11:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13 11:17 Daniel Wild [this message]
2004-08-13 14:08 ` Rep spec for tagged type Georg Bauhaus
2004-08-14  9:40   ` Daniel Wild
2004-08-13 17:07 ` Nick Roberts
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox