comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Rep spec for tagged type
Date: Fri, 13 Aug 2004 14:08:07 +0000 (UTC)
Date: 2004-08-13T14:08:07+00:00	[thread overview]
Message-ID: <cfii07$98j$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 87n00z8exk.fsf@goofinder.dyndns.org

Daniel Wild <dan@example.com> 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



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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13 11:17 Rep spec for tagged type Daniel Wild
2004-08-13 14:08 ` Georg Bauhaus [this message]
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