comp.lang.ada
 help / color / mirror / Atom feed
From: "R. Tim Coslet" <coslett@kaisere.com>
Subject: Re: Elimination of "use" clauses
Date: 1999/07/08
Date: 1999-07-08T00:00:00+00:00	[thread overview]
Message-ID: <3784F737.A04F466D@kaisere.com> (raw)
In-Reply-To: 7ljbsu$ni7$1@nnrp1.deja.com

Our coding standard prohibits "use", except for "use type" (because
operator "renames" as we did in Ada83 get awful messy).

Our coding standard USED to prohibit all use of "renames" (except for
operators) for just the reason you give below: renaming packages to get
short dot notation form simply obscures the code.

They did finally loosen up on "renames" after seeing how a rename of an
array reference or list reference inside a loop or subprogram works (and
usually clues in the compiler to only do the index calculation ONCE
instead of on every reference).

Of course one has to realize that our entire coding standard was
developed when our "environment" consisted of nothing but VAX LSE, an
Ada83 compiler, and CCC. It is in review for potentially significant
changes.

Robert Dewar wrote:

> In article <377CE178.6C15F543@hso.link.com>,
>   "Samuel T. Harris" <sam_harris@hso.link.com> wrote:
>
> and that is by NO means the worst case. Well if you are really
> usephobic, or worse, live in an environment which mandates that
> use be disallowed (I have encountered such absurdities), then
> you end up doing a package renaming:
>
>    X := NFR.Random (Gen);
>
> But this is *precisely* no help at all if you have decent
> tools, and creates useless noise. It does not tell you
> immediately where something is. The only purpose of the
> prefix NFR is to help you find the declaration of Random
> using decrepit tools. That to me is hard to justify.
>
>
> (actually for me, I agree with what someone wrote earlier, any
> Ada environment not providing this capability is broken and
> unusable as far as I am concerned). Even if you use FULL
> qualification, it is nowhere NEAR as convenient as going
> directly to the declaration with a decent tool. If you have
> not tried working in such an environment, give it a try, you
> may find it enlightening (and not have to reach so often for
> the baseball bat :-)
>







  parent reply	other threads:[~1999-07-08  0:00 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01  0:00 Elimination of "use" clauses Dr. Neil C. Audsley
1999-07-01  0:00 ` Samuel T. Harris
1999-07-01  0:00 ` czgrr
1999-07-01  0:00   ` Ted Dennison
1999-07-02  0:00     ` czgrr
1999-07-02  0:00       ` Ted Dennison
1999-07-01  0:00 ` Joe Wisniewski
1999-07-02  0:00 ` Robert Dewar
1999-07-02  0:00   ` Ed Falis
1999-07-03  0:00     ` Joe Wisniewski
1999-07-03  0:00       ` Ed Falis
1999-07-03  0:00       ` Keith Thompson
1999-07-13  0:00     ` Peter Amey
1999-07-02  0:00   ` Ted Dennison
1999-07-02  0:00     ` Ed Falis
1999-07-02  0:00     ` Stephen Leake
1999-07-02  0:00     ` Robert Dewar
     [not found]       ` <7ltus1$ah1@dfw-ixnews19.ix.netcom.com>
1999-07-13  0:00         ` Robert A Duff
1999-07-18  0:00           ` Richard D Riehle
1999-07-18  0:00             ` Dale Stanbrough
1999-07-20  0:00               ` Richard D Riehle
1999-07-19  0:00                 ` Brian Rogoff
1999-07-20  0:00                   ` Robert Dewar
1999-07-20  0:00                     ` Brian Rogoff
1999-07-21  0:00                       ` Robert Dewar
1999-07-21  0:00                         ` Brian Rogoff
1999-07-22  0:00                           ` Robert Dewar
1999-07-22  0:00                             ` Brian Rogoff
1999-07-22  0:00                           ` Robert Dewar
1999-07-22  0:00                             ` Brian Rogoff
1999-07-21  0:00                       ` Ted Dennison
1999-07-21  0:00                         ` Robert A Duff
1999-07-21  0:00                         ` Robert Dewar
1999-07-21  0:00                     ` Robert A Duff
1999-07-21  0:00                       ` Michael F. Yoder
1999-07-21  0:00                         ` Robert A Duff
1999-07-23  0:00                 ` Tucker Taft
1999-08-03  0:00                   ` Richard D Riehle
1999-07-20  0:00               ` David Kristola
1999-07-18  0:00             ` jerry
1999-07-19  0:00               ` Vladimir Olensky
1999-07-20  0:00               ` Richard D Riehle
1999-07-20  0:00                 ` jerry
1999-07-20  0:00                 ` Opaque Types (was Elimination of "use" clauses) David C. Hoos, Sr.
1999-07-19  0:00             ` Elimination of "use" clauses Ted Dennison
1999-07-19  0:00               ` Tucker Taft
1999-07-19  0:00                 ` Ted Dennison
1999-07-02  0:00   ` Samuel T. Harris
1999-07-02  0:00     ` Robert Dewar
     [not found]       ` <7ltl2q$mog$1@nnrp1.deja.com>
1999-07-08  0:00         ` Michael F. Yoder
1999-07-09  0:00           ` Richard D Riehle
1999-07-09  0:00             ` Michael F. Yoder
1999-07-09  0:00             ` Marin David Condic
1999-07-09  0:00           ` Robert Dewar
1999-07-09  0:00             ` Dale Stanbrough
1999-07-12  0:00               ` Robert Dewar
1999-07-12  0:00                 ` Ted Dennison
1999-07-09  0:00             ` Michael F. Yoder
1999-07-14  0:00               ` Tucker Taft
1999-07-10  0:00             ` Simon Wright
1999-07-12  0:00               ` Robert Dewar
1999-07-08  0:00       ` R. Tim Coslet [this message]
1999-07-09  0:00         ` Robert Dewar
1999-07-09  0:00           ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox