comp.lang.ada
 help / color / mirror / Atom feed
From: smize@Starbase.NeoSoft.COM (Samuel Mize)
Subject: Re: seperate keyword and seperate compilation with Gnat?
Date: 1996/07/02
Date: 1996-07-02T00:00:00+00:00	[thread overview]
Message-ID: <4rckva$dj1@Starbase.NeoSoft.COM> (raw)
In-Reply-To: 31D95D93.28D8D15B@jinx.sckans.edu


In article <31D95D93.28D8D15B@jinx.sckans.edu>,
David Morton  <dmorton@jinx.sckans.edu> wrote:
>I've been working with John Herro's AdaTutor
>program on Linux, and gnat.
>
>He uses the keyword seperate a lot, to make the assignment 
>procedure in a seperate file, ie,
>
>in file foo.adb  (the test file)
>procedure bar is seperate;
>
>then in file foo-bar.adb
>
>seperate(foo) (the assignment file)
>procedure bar is
>...
>
>He argues that the file foo.adb should be able to be compiled,
>seperately, since the specification is there, even though the actual
>procedure body has not been written.  I'm inclined to believe that he's right,

He's certainly right (at least for Ada83, and I *think* for Ada95)
(unless he's actually spelling it "seperate" in the code).


>but gnat refuses to cleanly compile unless the file foo-bar.adb exists.

The parent unit should compile (but not link).  Might your gnat set-up
be automatically trying to link?  (Just a wild guess.)

Since I haven't seen this mentioned on comp.lang.ada, I assume it
isn't a problem with gnat itself.

Samuel Mize




  parent reply	other threads:[~1996-07-02  0:00 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-02  0:00 seperate keyword and seperate compilation with Gnat? David Morton
1996-07-02  0:00 ` Peter Hermann
1996-07-02  0:00   ` David Morton
1996-07-02  0:00 ` Robert Dewar
1996-07-18  0:00   ` Peter Hermann
1996-07-20  0:00     ` Robert Dewar
1996-07-02  0:00 ` Samuel Mize [this message]
1996-07-03  0:00   ` *separate* keyword and *separate* " David Morton
1996-07-03  0:00     ` Robert Dewar
1996-07-03  0:00   ` seperate keyword and seperate " Robert Dewar
1996-07-17  0:00   ` Robert I. Eachus
1996-07-03  0:00 ` Rob Kirkbride
1996-07-03  0:00   ` Robert A Duff
1996-07-03  0:00   ` Robert Dewar
1996-07-08  0:00     ` John Herro
1996-07-08  0:00       ` Robert Dewar
1996-07-10  0:00         ` John Herro
1996-07-10  0:00           ` Robert Dewar
1996-07-08  0:00       ` Robert Dewar
1996-07-09  0:00       ` Robert A Duff
1996-07-09  0:00         ` Robert Dewar
1996-07-09  0:00       ` progers
1996-07-08  0:00     ` michael
1996-07-08  0:00       ` Robert Dewar
1996-07-11  0:00         ` Robert A Duff
1996-07-11  0:00           ` Robert Dewar
1996-07-12  0:00             ` David Morton
1996-07-12  0:00               ` Robert Dewar
1996-07-16  0:00                 ` Michael Paus
1996-07-08  0:00     ` Robert A Duff
1996-07-03  0:00 ` Mike Card (x3022)
1996-07-04  0:00 ` Jon S Anthony
1996-07-03  0:00   ` Robert Dewar
1996-07-03  0:00   ` Robert Dewar
1996-07-04  0:00   ` Robert A Duff
1996-07-05  0:00 ` Jon S Anthony
1996-07-06  0:00   ` Robert Dewar
1996-07-05  0:00 ` Jon S Anthony
1996-07-09  0:00 ` Jon S Anthony
1996-07-09  0:00 ` Jon S Anthony
1996-07-09  0:00   ` Robert Dewar
1996-07-12  0:00   ` Jon S Anthony
1996-07-21  0:00     ` Robert A Duff
1996-07-11  0:00 ` Jon S Anthony
1996-07-11  0:00   ` Robert A Duff
1996-07-12  0:00   ` Robert Dewar
1996-07-14  0:00 ` Norman H. Cohen
1996-07-15  0:00   ` Robert Dewar
1996-07-15  0:00 ` Jon S Anthony
1996-07-15  0:00   ` Robert Dewar
1996-07-16  0:00 ` Jon S Anthony
replies disabled

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