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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fef3ad775ef4b0b7 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!nx01.iad.newshosting.com!newshosting.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 15 Oct 2008 19:34:37 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada for 1st year students References: <60e0c5f0-1e17-4add-b21e-b1ef622d5233@v13g2000pro.googlegroups.com> <01b1f1e3-02eb-4a2a-88a3-5650f114a227@v39g2000pro.googlegroups.com> <48EE710D.7080109@obry.net> <417af75d-56a0-44f3-b214-35c6603235e6@r38g2000prr.googlegroups.com> <014b15d2-fe7c-4eeb-9366-7c92ef07efe2@f40g2000pri.googlegroups.com> <74dc9192-deff-43fd-a5ef-fa9abd92e1e2@25g2000prz.googlegroups.com> <2fad3f37-3b68-48cf-97aa-21c843815431@i18g2000prf.googlegroups.com> In-Reply-To: <2fad3f37-3b68-48cf-97aa-21c843815431@i18g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48f629ad$0$6577$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 15 Oct 2008 19:34:37 CEST NNTP-Posting-Host: 510cd5f7.newsspool4.arcor-online.net X-Trace: DXC=18PXbMXonPF02Sh8E_NfIA4IUK_ljHiLnc\616M64>JLh>_cHTX3jM2iMj4M>\@`L X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8129 Date: 2008-10-15T19:34:37+02:00 List-Id: christoph.grein@eurocopter.com schrieb: >> And project files are completely unecessary and inconvient. As you >> know Ada is designed in such a way that all the dependencies are >> described in the program text. (I think it _is_ possible to compile a simple one file main unit in GPS without setting up a project first.) > Ada describes only the dependences among Ada units. It has nothing to > say about where these units are. gnatmake has switches to tell it > where to look. Projects are just another means (and IMO with much > better readability) to tell where to find the units. This is about a class for beginners. Configuration management will keep them busy learing things that have little to do with writing your first programs for a well defined execution environment. The concept of feeding the source to the compiler is obviously easier to understand when all that is needed is $ gnatmake main.ads or $ adacomp my_turtles.ada or some such. The first programs might need to with other units, at some point. To avoid -I-ing etc., I'd rather dump included directories and instead put all the needed source files in one working directory. It will be obvious, then, where the files are, how to look at them, and so on. Arranging larger projects is another subject. The GNAT User's Manual has always had a section on translation using gnatmake. I think it was written after years of experience in teaching how to use a compiler.