comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: The Dreaded "Missing Subunits"
Date: 19 Sep 2002 11:33:53 -0400
Date: 2002-09-19T15:44:11+00:00	[thread overview]
Message-ID: <u8z1y0za6.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: amcnau$4j1t7$1@ID-77047.news.dfncis.de

Dmitry A.Kazakov <mailbox@dmitry-kazakov.de> writes:

> Preben Randhol wrote:
> > Come on what is so nasty with .adb .ads?
> 
> Not so nasty if you start a new project. But I remember how it took two 
> days or so to rename all files while porting a project from DEC Ada to 
> GNAT. It was not only file extensions. For the sake of portability all 
> files names were 8-letters long. Well, it appeared a little bit less 
> portable than we expected! (:-))

gnatchop would solve that problem easily; perhaps it was not available
then.

It would be nice if every vendor provided a similar tool; "take this
collection of randomly named files and name them according to your
convention". 

> > Besides don't you get the with-ing problem with .ada?

Depends on wether the spec and body are both in one file, or you still
have two files, just both ending in .ada.

If you have two files, then you still need some convention to
distinguish the body from the spec; hence Rationals foo.1.ada,
foo.2.ada.

If you have one file, you lose the separate compilation of spec and
body. You don't get horrible "withing" problems (Ada is still the same
language), you just get horrible recompilation times (you recompile
the spec and everything that depends on it, every time you change the
body).

> Why? It worked with Ada 83, why shouldn't it with Ada 95.

In Ada 83 you still needed different file names for the spec and body.
The convention I used with DEC 83 (if I recall correctly) was
foo_s.ada for the spec, and foo.ada for the body. I much prefer
foo.ads, foo.adb.

You could put both spec and body in one file, but you got the same
horrible recompilation issues.

-- 
-- Stephe



  reply	other threads:[~2002-09-19 15:33 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 22:49 The Dreaded "Missing Subunits" Peter Richtmyer
2002-09-13  8:16 ` Peter Amey
2002-09-13  8:51   ` Ada2005 temp solo child (was: " Peter Hermann
2002-09-14  2:33     ` Robert A Duff
2002-09-13  9:24   ` Emmanuel Briot
2002-09-13 20:46     ` Simon Wright
2002-09-14  0:25     ` Chad R. Meiners
2002-09-14  2:53     ` Robert A Duff
2002-09-14 20:20       ` Simon Wright
2002-09-16 13:48         ` Ted Dennison
2002-09-16 16:33           ` Keith Thompson
2002-09-17  2:42             ` Ted Dennison
2002-09-18 20:56           ` Robert A Duff
2002-09-19  8:26             ` Emmanuel Briot
2002-09-19  9:55             ` Preben Randhol
2002-09-19 10:53             ` Marc A. Criley
2002-09-19 11:26             ` Marin David Condic
2002-09-19 21:49             ` Dmitry A.Kazakov
2002-09-19  9:47               ` Preben Randhol
2002-09-20  2:42                 ` Dmitry A.Kazakov
2002-09-19 15:33                   ` Stephen Leake [this message]
2002-09-19 15:36                   ` Preben Randhol
2002-09-20 22:31                     ` Dmitry A.Kazakov
2002-09-16 15:10       ` Emmanuel Briot
2002-09-18 21:17         ` Robert A Duff
2002-09-18 22:41           ` Stephen Leake
2002-09-19  0:00             ` Robert A Duff
2002-09-19  1:39               ` Keith Thompson
2002-09-19 15:19                 ` Stephen Leake
2002-09-19  4:02               ` Larry Kilgallen
2002-09-19 15:24               ` Stephen Leake
2002-09-19 20:34               ` Randy Brukardt
2002-09-19 14:44           ` Peter Richtmyer
2002-09-19 20:25           ` Randy Brukardt
2002-09-13 17:15 ` Mark Johnson
2002-09-13 20:56 ` Stephen Leake
2002-09-13 20:58 ` Simon Wright
2002-09-16 17:28   ` Peter Richtmyer
2002-09-19 20:05     ` Brian Gaffney
  -- strict thread matches above, loose matches on Subject: below --
2002-09-19  1:41 Alexandre E. Kopilovitch
2002-09-19 14:25 ` Peter Hermann
2002-09-19 11:37 Grein, Christoph
2002-09-20  6:03 Grein, Christoph
2002-09-20  7:30 ` Preben Randhol
2002-09-20 14:01   ` Robert A Duff
2002-09-20  9:05 Grein, Christoph
replies disabled

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