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-11 07:31:06 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!opentransit.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Learning Ada-What does this mean. Date: 11 Sep 2002 16:31:04 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: NNTP-Posting-Host: avelizy-103-1-2-90.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 1031754666 11898 217.128.15.90 (11 Sep 2002 14:31:06 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 11 Sep 2002 14:31:06 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 Xref: archiver1.google.com comp.lang.ada:28824 Date: 2002-09-11T14:31:06+00:00 List-Id: vashwath@rediffmail.com (prashna) writes: > Hi all, > 1)Have a look at following piece of code and pls let me what does it > mean? > type T_MEM_IO is > record > INT_1 : T_INTEGER; > INT_2 : T_INTEGER; > end record; > for T_MEM_IO use > record > INT_1 at 0 range 0..31; > INT_2 at 1 range 0..31; > end record; This is a representation clause (see RM.13). It is used to layout the data in memory. > 2)The code shown above is compiling perfectly when compiled using > tartan compiler(on AIX), but giving error when compiled using gnat(on > windows 2000).Why is it so? Hard to tell without the T_INTEGER definition. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595