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: Ehud Lamm Subject: Re: a Newbie's question Date: 1999/03/21 Message-ID: #1/1 X-Deja-AN: 457020404 References: <36F416E2.7D459C4A@hotmail.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: The hebrew University of Jerusalem Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-21T00:00:00+00:00 List-Id: Since the answers to most of your questions are specific to the compiler you use (in your case GNAT), it is best you ask your instructor directly. However, since these are common questions, I'll give a brief answr. Ada modules are spilt into two parts: specification (often called spec) and body. The spec specifies the INTERFACE of the module (which can be subroutine, a package, a task etc.) and the body give the actual implementation. In the GNAT env. the extension ADS is used for spec files, and ADB for body. Since you are just starting out, my first guess is that you are writing a program which consists of a "main" and maybe some internal procedures. This means that the extension to use is ADB. In this scenario, you code will look like this: procedure Program_name is procedure Internal_Subroutine_Name is begin end; prcoedure Second_Routine is begin end; begin -- main end; all inside one ADB file. You can not write more than one compilation unit (come to class to learn what this is!) inside a file. Hope this help. Good luck with Ada. Ehud Lamm mslamm@pluto.mscc.huji.ac.il