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,2078dddcdcd8d83 X-Google-Attributes: gid103376,public From: eachus@spectre.mitre.org (Robert I. Eachus) Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/16 Message-ID: #1/1 X-Deja-AN: 242881060 References: <5kjvcv$evt@news.cis.nctu.edu.tw> <5kn8ko$jcc@top.mitre.org> <1997May7.201035.2439@nosc.mil> <33727EEA.2092@sprintmail.com> <5kuf1j$17vi@uni.library.ucla.edu> <3373666A.31DFF4F5@spam.innocon.com> <3373EAB5.73A0@sprintmail.com> <33751581.13A5@sprintmail.com> Organization: The Mitre Corp., Bedford, MA. Newsgroups: comp.lang.ada Date: 1997-05-16T00:00:00+00:00 List-Id: In article dewar@merv.cs.nyu.edu (Robert Dewar) writes: (I said:) >> My reaction in those cases is to diagnose a misplaced use clause, >> and use the package name: >> Parent : constant xxx := My_List_Instance.Parent (K);>> RBKD said: > Well you sure take a shaky place to make the no-use-clause > stand. I find it hard to imagine that anyone would think that it > made the GNAT soures clearer to do a global replace of Parent > with Atree.Parent. Given that the whole of GNAT is about tree > processing, and the Parent function is truly fundamental, this > seems silly to me. I wasn't advocating elimination of use clauses, and I never have. I tend to be a moderate on the subject. (Look at my .sig file! ;-) But in this case, there is a perfectly simple "fix" of the problem by adding the needed qualification. The reason for the reference to misplaced use clauses was because I'll look there to see what the right prefix is. Incidently, and here I am willing to be counted as an extremist, often the right solution to use cause induced conflicts is to put the use clauses where needed, rather than in the context clause. If you have 20 operations on an ADT, two of which use Text_IO, put a with Text_IO in the context clause for the body, but put the use clauses in the IO operations. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...