comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Bad coding standards - aesthetics are irrelevant
Date: Fri, 29 Dec 2000 16:23:36 GMT
Date: 2000-12-29T16:23:36+00:00	[thread overview]
Message-ID: <92idpv$hhs$1@nnrp1.deja.com> (raw)
In-Reply-To: 92i5hu$ktl9@news.kvaerner.com

In article <92i5hu$ktl9@news.kvaerner.com>,
  "Tarjei T. Jensen" <tarjei.jensen@kvaerner.com> wrote:
> Failing that the ada vendors could agree on a convention for
> special comments to be used for pretty printing directives.

I assume everyone in this thread is familiar with the GNAT
convention (implemented by the -gnatyk switch) is that all
uses of an identifier must match the casing of the declaration.

(I think declaration is a better criterion than first use,
and they are not quite equivalent when you have multiple
units).

Also we have seen cases where two identifiers have the same
characters but different casing, e.g.

   Unval
   UNval

where perhaps the Un in the first one is Un as in Untie,
and the UN in the second is UN as in United Nations.

In GNAT, each reference will be forced to be cased
appropriately (and of course you really need a compiler
with full visibility analysis to do this right).


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2000-12-29 16:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-20 22:22 Bad coding standards - aesthetics are irrelevant Singlespeeder
2000-12-20 23:46 ` Larry Kilgallen
2000-12-21  4:12 ` Robert C. Leif, Ph.D.
2000-12-21 11:33   ` Robert Dewar
2000-12-21 15:59 ` Stephen Leake
2000-12-21 19:30   ` William Starner
2000-12-21 20:54     ` Florian Weimer
2000-12-22 21:33       ` William Starner
2000-12-22 14:57     ` Bruce or Tracy
2000-12-23  8:04       ` Simon Wright
2000-12-28  0:54         ` mark_lundquist
2000-12-22 15:06   ` Ira D. Baxter
2001-01-03 20:02   ` Wes Groleau
2000-12-21 23:46 ` Marin David Condic
2000-12-22  6:45   ` mark_lundquist
2000-12-28 16:05   ` Erik Magnuson
2000-12-28 20:16     ` Marin David Condic
2000-12-29  4:05       ` Robert Dewar
2000-12-29 12:19       ` Larry Kilgallen
2000-12-29 14:02       ` Tarjei T. Jensen
2000-12-29 16:23         ` Robert Dewar [this message]
2000-12-29 14:44       ` Erik Magnuson
2001-01-03 20:12   ` Wes Groleau
replies disabled

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