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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6d9eb594a33cb947 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-31 23:25:48 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!newsfeeds.belnet.be!news.belnet.be!opentransit.net!jussieu.fr!enst!enst.fr!not-for-mail From: Christoph Grein Newsgroups: comp.lang.ada Subject: Re: very specific question on Ada syntax Date: Thu, 1 Feb 2001 08:14:48 +0100 (MET) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 981012246 90475 137.194.161.2 (1 Feb 2001 07:24:05 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 1 Feb 2001 07:24:05 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-MD5: Fzu0AFSPKV1wJF3qEWBPFw== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk X-Reply-To: Christoph Grein List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:4806 Date: 2001-02-01T08:14:48+01:00 Robert Dewar wrote: > > package P is > > > > type T is ('a', None, 'Z'); > > type F_T is access function return T; > > > > X: F_T := 'a''Access; > > Y: F_T := None'Access; > > > > end P; > > > > 6. X: F_T := 'a''Access; > > | > > >>> prefix of "Access" attribute must be aliased > > > > Is this then a bug? > > No, this is obviously a correct error message. What would > make you think that this particular usage was legal? A prefix is a name, and a character literal is a name. So taking an attribute is legal. An enumeration literal is a parameterless function, its convention is intrinsic. The Access attribute is not allowed for intrinsic subprograms. So I see two bugs (the second being a misleading error message :-). Christoph Grein