comp.lang.ada
 help / color / mirror / Atom feed
From: Chris Morgan <mihalis@ix.netcom.com>
Subject: Re: Filename for packages?
Date: 1998/10/04
Date: 1998-10-04T05:51:00-07:00	[thread overview]
Message-ID: <87hfxkh4l4.fsf@mihalis.ix.netcom.com> (raw)
In-Reply-To: 36176A49.2D6C05CA@phoenix.net

Renwick Preston <rpreston@phoenix.net> writes:

> I just started looking into Ada and I'm unsure how to name my
> files. Should the package specification filename end with a .ads and
> the body a .adb?

Yes, that's a good way to do it.

>I can't find that information in the book Ada 95... by Feldman.

Actually you can call them anything you like. You can even put the
whole program in one file if you like. Prof Feldman's book isn't
compiler specific (which is the right decision IMHO). However should
you wish to try out the GNU Ada compiler (GNAT) you will find it
convenient to use the naming scheme expected by default by that
compiler. What I used to do, rather than worry about it, was write the
code and then get the compiler to chop up my code into the correctly
names files using the gnatchop tool - see the (excellent) GNAT
documentation if interested. Personally I see no reason not to use
this naming scheme whatever Ada compiler you intend to use, it just
makes things simpler IMHO.

Cheers,

Chris

-- 
Chris Morgan <mihalis at ix.netcom.com> http://www.netcom.com/~mihalis




  parent reply	other threads:[~1998-10-04  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-04  0:00 Filename for packages? Renwick Preston
1998-10-04  0:00 ` Tucker Taft
1998-10-05  0:00   ` dewarr
1998-10-05  0:00     ` Peter Hermann
1998-10-05  0:00       ` dewarr
1998-10-05  0:00         ` Markus Kuhn
1998-10-05  0:00         ` Gautier.DeMontmollin
1998-10-05  0:00           ` dewar
1998-10-05  0:00             ` Michael F Brenner
1998-10-05  0:00             ` Jerry van Dijk
1998-10-05  0:00       ` dennison
1998-10-04  0:00 ` Chris Morgan [this message]
1998-10-05  0:00 ` dennison
1998-10-05  0:00 ` dewarr
replies disabled

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