comp.lang.ada
 help / color / mirror / Atom feed
* Rep spec for tagged type
@ 2004-08-13 11:17 Daniel Wild
  2004-08-13 14:08 ` Georg Bauhaus
  2004-08-13 17:07 ` Nick Roberts
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Wild @ 2004-08-13 11:17 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-14  9:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-13 11:17 Rep spec for tagged type Daniel Wild
2004-08-13 14:08 ` Georg Bauhaus
2004-08-14  9:40   ` Daniel Wild
2004-08-13 17:07 ` Nick Roberts

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