From: danr@SSD.CSD.HARRIS.COM (Dan Rittersdorf)
Subject: Re: File name conventions for Ada units
Date: 29 Sep 90 22:04:48 GMT [thread overview]
Message-ID: <1110@travis.csd.harris.com> (raw)
In-Reply-To: 589@censun1.UUCP
In article <589@censun1.UUCP> cew@censun1.UUCP (SSUID Craig E Warsaw) writes:
>
>I'd like to start a discussion about file naming conventions
>for ada units.
> ...
>
> package spec: package_.ada
> package body: package.ada
> subunit: package__subunit.ada
This one seems awkward to me, personally, but personal taste is of less
concern than being able to infer something about the contents of a file
from it's name.
>
>I've also seen
>
> package spec: package_spec.ada or package_s.ada
> package body: package_body.ada or package_b.ada
We use a scheme similar to this, except it doesn't have the annoying
attributes you mention below.
package spec: package.a
package body: package_b.a
separate subunit: package_s.a
The only thing that I would change here would be to name the subunit as
well. For example:
package spec: calendar.a
package body: calendar_b.a
separate subunit: calendar_local_time_s.a
Unfortunately, there is no *written* standard to quote here -- this is a
defacto standard we use for naming units in the standard library which we
release with HAPSE (Harris Ada Programming Support Environment).
>
>By the way, there is an annoying aspect of all of these schemes.
>If I use wildcarding to print or list files, all of the package
>bodies occur before the package specs. I'd prefer the specs
>before the bodies, but that's not too important.
>
As you can see, this scheme avoids this annoying aspect.
BTW, I personally feel the same way -- I like to see related files
clustered together, and in a compilation order within the group.
This scheme has the desired effect.
>Thanks.
>
You're welcome.
>Craig Warsaw
>Century Computing, Inc.
>1014 West Street
>Laurel, MD 20707
>Internet: cew@fox.gsfc.nasa.gov
-danr
______________________________________________________________________________
Dan Rittersdorf (Dan'l fer short...) : danr@travis.ssd.csd.harris.com
Harris Corporation, Computer Systems Division, Fort Lauderdale, FL 33309
______________________________________________________________________________
"Even a fool is thought wise if he keeps silent,
and discerning if he holds his tongue." -- Proverbs 17:28
next prev parent reply other threads:[~1990-09-29 22:04 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 [this message]
1990-10-01 14:56 ` David Emery
1990-10-06 14:37 ` Rik Palo
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