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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d000078cf0ac6305 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-13 05:46:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Learning Ada-What does this mean. Date: Fri, 13 Sep 2002 12:46:14 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1031921174 20254 134.91.1.34 (13 Sep 2002 12:46:14 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 13 Sep 2002 12:46:14 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:28924 Date: 2002-09-13T12:46:14+00:00 List-Id: prashna 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