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,386bb25b61f8f5b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Re: aliased and parameters Date: 31 Jul 2006 12:59:27 -0700 Organization: http://groups.google.com Message-ID: <1154375967.436675.116640@h48g2000cwc.googlegroups.com> References: <1154369116.867649.278950@m73g2000cwd.googlegroups.com> <1154372565.780568.165840@p79g2000cwp.googlegroups.com> <1154373046.777655.292010@m79g2000cwm.googlegroups.com> <1154373975.951370.77770@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: 192.35.35.35 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1154375971 8928 127.0.0.1 (31 Jul 2006 19:59:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 31 Jul 2006 19:59:31 +0000 (UTC) In-Reply-To: <1154373975.951370.77770@b28g2000cwb.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=192.35.35.35; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news2.google.com comp.lang.ada:6038 Date: 2006-07-31T12:59:27-07:00 List-Id: REH wrote: > Great! Can I use that on a subprogram parameter. Like this? > > procedure Foo(X : out Integer) is > pragma Volatile(X); > begin > ... > > REH No dice. The compiler says the above volates 13.14(19) of the standard (A representation item cannot be specified for an entity that has already been frozen) I think I can do this, though: type Header_Type is ... pragma Volatile(Header_Type); procedure Foo(Hdr : out Header_Type) is ... REH