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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f798c20ee494262a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <2455416.cbiGJIoehT@linux1.krischik.com> From: Martin Krischik Subject: Re: setting 'Size and unchecked conversion safe here? Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Fri, 11 Feb 2005 20:08:28 +0100 References: Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.148.166 (83.169.148.166) NNTP-Posting-Date: Fri, 11 Feb 2005 22:26:34 +0100 X-Trace: c2f6f420d230af60c310313897 Xref: g2news1.google.com comp.lang.ada:8258 Date: 2005-02-11T20:08:28+01:00 List-Id: Marius Amado Alves wrote: > I need to store access-to-subprogram values in a 64-bit modular type. I > write > > for My_Access_To_Subprogram_Type'Size use 64; > > and GNAT warns me about 32 bits being unused. But Unchecked_Conversion > between the access and the modular works fine. Now, is it working fine > by chance or by language definition? In which case you probably have a 32 bit GNAT installed. Otherwise GNAT would use all 64 bit and won't say a word. > (I know how I can write it differently, but if the above is safe I'd > rather leave it as it is.) I don't know. The upper 32 bit are undefined - maybe not that good. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com