comp.lang.ada
 help / color / mirror / Atom feed
From: "McDoobie" <chris@dont.spam.me>
Subject: Re: Only one compilation unit.
Date: Mon, 09 Jul 2001 13:02:26 GMT
Date: 2001-07-09T13:02:26+00:00	[thread overview]
Message-ID: <CXh27.180796$DG1.30332831@news1.rdc1.mi.home.com> (raw)
In-Reply-To: 3B497F21.8CD784D8@brighton.ac.uk

In article <3B497F21.8CD784D8@brighton.ac.uk>, John English
<je@brighton.ac.uk> wrote:


> For GNAT, yes.
> 
> Simple solution: if you have x.adb containing procedure Main and
> procedure Sub, run "gnatchop x.adb" which will split the procedures into
> separate files called main.adb and sub.adb, then run "gnatmake main.adb"
> which will compile Main and any other units that it depends on (in this
> case, Sub). Note that Main will need to say "with Sub;" at the top...
> 
>> Or is it necessary to write .ads which describe each and every
>> procedure?
> 
> No.

Gnatchop is turning out to be very handy.

I intend to make use of it more often.

Thank you.

McDoobie
chris@dont.spam.me



  reply	other threads:[~2001-07-09 13:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-15  2:20 Only one compilation unit McDoobie
2001-06-15  3:05 ` James Rogers
     [not found] ` <3B297ED4.2BD6DF79@engineer.com>
2001-06-15  4:43   ` McDoobie
2001-06-15  6:50 ` tmoran
2001-06-15  9:21 ` David C. Hoos, Sr.
2001-06-15 12:53 ` Marc A. Criley
2001-07-09  9:53 ` John English
2001-07-09 13:02   ` McDoobie [this message]
2001-07-10  0:19   ` Keith Thompson
2001-07-13 19:08   ` Simon Wright
2001-07-15 11:40     ` Larry Kilgallen
2001-07-16 13:41       ` B.Gaffney
2001-07-16 15:08         ` Larry Kilgallen
2001-07-16  1:56     ` Robert Dewar
2001-07-17 18:49       ` Simon Wright
2001-07-18  7:53         ` Robert Dewar
replies disabled

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