comp.lang.ada
 help / color / mirror / Atom feed
From: palo@rikka.enet.dec.com (Rik Palo)
Subject: Re: File name conventions for Ada units
Date: 6 Oct 90 14:37:23 GMT	[thread overview]
Message-ID: <1990Oct6.141328@rikka.enet.dec.com> (raw)
In-Reply-To: 1110@travis.csd.harris.com

In article <EMERY.90Oct1105615@aries.linus.mitre.org>, emery@linus.mitre.org
(David Emery) writes:
;From: emery@linus.mitre.org (David Emery)
;Newsgroups: comp.lang.ada
;Subject: Re: File name conventions for Ada units
;
;The following come from the DEC Ada compiler:
;>
;>	package spec:	package_.ada
;>	package body:	package.ada
;>	subunit:	package__subunit.ada
;Without a doubt, this is the UGLIEST, WORST naming convention I can
;imagine.  I don't know who/why DEC thought this up, but s/he should be
;shot, hung, drawn and quartered (and not necessarily in that
;order...)!  There are several things that make it offensive:
;	1.  the spec name is modified (with the trailing underscore),
;while the body name remains "pure".
;	2.  the syntax for the spec and subunit is not an Ada identifier
;	3.  it's just ugly.
;	4.  the body preceeds the spec in "lexical sorting order"
;

Actually, since Digital's format is an internal format for the compiler's copy
of the files.
It works fine and doesn't impose anything on the user.  As a matter of fact, if
the project
can live without the RECOMPILE command, and keeps the source files in some
repository visible for DEBUG, then the Ada copied files can be disabled
altogether saving the disk space -- this implies that the users wish to do more
work than is necessary keeping track of source files or use Digital's Code
Management System (CMS).  The VAX Ada compiler understands how to get files from
it, so the above is actually quite reasonable -- but not everybody wishes (or
can afford) all the tools all the time.  That's why the default operation works
in the minimum environment.

On the other hand, using a consistent naming convention *is* important. 
Rational's approach is great because it permits forgetting all about a mapping
from source file to target unit;  Digital, with its compilation system [pre]load
function, is aiming for a similar result - namely let the compiler "find"
compilation units in whatever source files they happen to reside. This even
allows *all* units to be in one file!  This would/could allow this time lost
quibbling over file naming to be spent where *I* feel is more important -- the
naming of units and types, a whole other can of worms in a Coding Standard
philosophy.

	regards

		rikki

  parent reply	other threads:[~1990-10-06 14:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-09-28 20:25 File name conventions for Ada units SSUID Craig E Warsaw
1990-09-29 16:29 ` stt
1990-09-29 22:04 ` Dan Rittersdorf
1990-10-01 14:56   ` David Emery
1990-10-06 14:37   ` Rik Palo [this message]
1990-09-30  2:49 ` Michael Feldman
1990-10-02 17:10   ` arny.b.engelson
1990-10-04 15:05     ` Michael Feldman
1990-10-02 21:55   ` Erland Sommarskog
1990-10-03  2:00     ` Alan Adamson
1990-10-03 17:00     ` Alex Blakemore
1990-10-04  9:37       ` Mike Harrison
1990-10-04 12:10       ` Robert Firth
1990-10-04  1:55     ` Michael Feldman
1990-10-04 17:22       ` Brian Hanafee
1990-10-08 17:33 ` Andy DeFaria
1990-10-11  8:59   ` Dan Bernstein
1990-10-12  5:29 ` Andy DeFaria
  -- strict thread matches above, loose matches on Subject: below --
1990-10-05 12:04 munck
replies disabled

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