comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: a Newbie's question
Date: 1999/03/21
Date: 1999-03-21T00:00:00+00:00	[thread overview]
Message-ID: <m34snf4klc.fsf@mheaney.ni.net> (raw)
In-Reply-To: 36F416E2.7D459C4A@hotmail.com

Alon Rotem <alon_rotem@hotmail.com> writes:

> I need some direction about basic programming in ADA-95. I know the
> theoretical basics of the language (data types, procedures, functions,
> packages), my problem is putting it all together.

I suggest you study code written by an, um, expert in Ada95.  There are
examples to be found in the ACM patterns archive.

<http://www.acm.org/archives/patterns.html>

You can subscribe to the patterns list by sending a message with the
body

subscribe patterns <your full name>

to the ACM mailing-list server.

<mailto:listserv@acm.org>

I've been converting all the C++ examples in the GoF book to Ada95, and
I'm almost done...


> Which file extensions are to be used?
> What's the difference between ADB and ADS ?
> What's the relation between the filename and the main procedure's name?
> What's the relation between the filename and the package name ?
> How can I write a simple program with one main procedure which uses  a
> package?
> Can I do it all in one file? do I have to split it into files? how?
> 
> Where can i get more information about this and example programs?

The relationship between Ada program units and files isn't defined by
the language.  Read the documentation that comes with your compiler.

There are a couple of no-cost Ada compilers available, from ACT and
Aonix.

<http://www.gnat.com/>
<http://www.aonix.com/>

The articles in the ACM patterns archive come with all the code at the
bottom of the message.  I recommend you install gnatchop (a tool that's
part of the gnat compiler), and use that to separate the code in the
message into separate files.




  parent reply	other threads:[~1999-03-21  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-20  0:00 a Newbie's question Alon Rotem
1999-03-21  0:00 ` robert_dewar
1999-03-21  0:00 ` Ehud Lamm
1999-03-21  0:00 ` Matthew Heaney [this message]
1999-03-21  0:00   ` Ehud Lamm
1999-03-23  0:00 ` Jonathan Hough
1999-03-26  0:00 ` Tony Gair
replies disabled

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