From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d74afdf3b25aea4a X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: a Newbie's question Date: 1999/03/21 Message-ID: #1/1 X-Deja-AN: 457078837 Sender: matt@mheaney.ni.net References: <36F416E2.7D459C4A@hotmail.com> NNTP-Posting-Date: Sat, 20 Mar 1999 18:52:18 PDT Newsgroups: comp.lang.ada Date: 1999-03-21T00:00:00+00:00 List-Id: Alon Rotem 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. You can subscribe to the patterns list by sending a message with the body subscribe patterns to the ACM mailing-list server. 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. 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.