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-Thread: 103376,673d883a7001e192 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!a26g2000pre.googlegroups.com!not-for-mail From: "Y.Tomino" Newsgroups: comp.lang.ada Subject: Re: Pure, Storage_Size and Unchecked_Conversion Date: Sun, 08 Jul 2007 03:41:38 -0700 Organization: http://groups.google.com Message-ID: <1183891298.519116.281800@a26g2000pre.googlegroups.com> References: <1183854255.792142.110150@i38g2000prf.googlegroups.com> <1183888192.6233.6.camel@kartoffel> NNTP-Posting-Host: 220.145.56.199 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1183891299 2371 127.0.0.1 (8 Jul 2007 10:41:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 8 Jul 2007 10:41:39 +0000 (UTC) In-Reply-To: <1183888192.6233.6.camel@kartoffel> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000pre.googlegroups.com; posting-host=220.145.56.199; posting-account=9W2rvw0AAACyvigQCWLBrKWN2EwyZyMn Xref: g2news1.google.com comp.lang.ada:16426 Date: 2007-07-08T03:41:38-07:00 List-Id: gcc 4.1.2 and gcc 4.2.0 are different. The default mode of gcc 4.2.0 is Ada 2005. And, Ada 2005 accepts access types with "for T'Storage_Size use 0" in pure package. "for T'Storage_Size use 0" means to disallow "new". T will be plain address value, and has no side effect. Please, see http://www.adaic.com/standards/05rm/html/RM-10-2-1.html > Just guessing what your package is supposed to achieve, > have you considered using System.Address_To_Access_Conversions? System.Address_To_Access_Conversions fixes pointer type as access all. Actually, I want to use the access constant, and expect inlining. -- YT http://panathenaia.halfmoon.jp/alang/ada.html