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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2f4e8127f6a9fd3 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Renaming entries? Date: 1999/02/18 Message-ID: <7ag0go$a34$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 445549524 References: <7aelgt$2hr$1@nnrp1.dejanews.com> <7afc1p$3mi$3@plug.news.pipex.net> X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 18 03:13:34 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-18T00:00:00+00:00 List-Id: In article <7afc1p$3mi$3@plug.news.pipex.net>, "Nick Roberts" wrote: > So, the solution to your problem is to use > > pragma Convention(Entry,Fred); > > in the package specification, and all will be well. Well this is yet another example that you can't trust everything you see on CLA, and readers are well cautioned not to assume any published solutions here are correct. Nick, I strongly suggest that you quickly compile things you suggest. If they don't compile, perhaps you should keep staring at the RM longer (the same RM that everyone things is such a revealing source of information on errors :-) If you had compiled this suggestion with GNAT you would have got something like: 3. pragma Convention (entry, q); | >>> reserved word "entry" cannot be used as identifier This is a correct message from GNAT, since your suggestion is definitely illegal. > Now all I need is a spiral-bound RM that doesn't keep ON > CLOSING ITSELF Well you will have to open it again to figure out why GNAT is correct here. If you need an RM reference, the appropriate one is RM 2.3(4): 4 An identifier shall not be a reserved word. This is a rather nice example of why RM references are not always helpful :-) Robert Dewar -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own