comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Learning Ada-What does this mean.
Date: Fri, 13 Sep 2002 12:46:14 +0000 (UTC)
Date: 2002-09-13T12:46:14+00:00	[thread overview]
Message-ID: <alsmmm$jou$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: d40d7104.0209122024.52c4a993@posting.google.com

prashna <vashwath@rediffmail.com> wrote:
: 
: It is defined like this "type I_INTEGER is range -2**31 .. 2**31 -1;
: The error it is giving is "component "DATE_32" overlaps "WORD"".

As Tom has explained, you will need to know how many bits
your integer type must at least consume, and then how many
storage elements you need to place all the bits in them.
(Whether theses storage elements are octets, 9-bit bytes,
32bit words, ... should be found in your compiler documentation 
or some file in the compiler distribution, or ...)
This will give you the offset of the second component, that is its
first storage element, in the record.

Maybe you can try to persuade your employers to obtain
a copy of "Ada as a Second Language", 2nd edition, N. Cohen,
which discusses the issues very clearly.

-- Georg



  reply	other threads:[~2002-09-13 12:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11 11:58 Learning Ada-What does this mean prashna
2002-09-11 12:26 ` Georg Bauhaus
2002-09-13  4:24   ` prashna
2002-09-13 12:46     ` Georg Bauhaus [this message]
2002-09-11 14:04 ` Stephen Leake
2002-09-11 14:31 ` Pascal Obry
2002-09-11 14:50   ` Peter Hermann
2002-09-11 18:40 ` tmoran
2002-09-13  4:19   ` prashna
2002-09-13  4:52     ` tmoran
2002-09-13 11:00     ` David C. Hoos, Sr.
replies disabled

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