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: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/17 Message-ID: #1/1 X-Deja-AN: 242094100 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: New York University Newsgroups: comp.lang.ada Date: 1997-05-17T00:00:00+00:00 List-Id: Robert Eachus said << 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.>> But you are talking in generalities, responding to my very specific example. You cannot seriously be suggesting that in the GNAT sources, for the hundreds, even thousands, of references to Parent, that we put a use clause in for each of them, and anyway, I don't even see that putting a use clause in is relevant in this case. Your only proferred solution that seems to work is Parent : constant Node_Id := Nlists.Parent (Other_Node); But I find the Nlists. here all over the place to be nasty noise, and of course you cannot eliminate this Nlists. with a use clause, since then you have the name conflict. Please note that this is no big deal. Very often we are talking about tiny routines where P : constant Node_Id := Parent (Other_Node); is quite fine. As many people have noted, short variable names, even one letter names, are quite fine if they are very local.