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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fb9cb88204b780c2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!c58g2000hsc.googlegroups.com!not-for-mail From: amado.alves@gmail.com Newsgroups: comp.lang.ada Subject: Re: simple programs -> one file with gps 2008 (gpl)? Date: Fri, 8 Aug 2008 15:44:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6g3k63Fe28ukU1@mid.individual.net> NNTP-Posting-Host: 92.250.15.28 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1218235487 31824 127.0.0.1 (8 Aug 2008 22:44:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Aug 2008 22:44:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c58g2000hsc.googlegroups.com; posting-host=92.250.15.28; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1572 Date: 2008-08-08T15:44:47-07:00 List-Id: > I'm new to Ada and therefore I'm digging through the book "Programming > in Ada 2005". Welcome! > "Complete simple programms might be presented in a single file." Probably this was just to stress that the language is not file- oriented like C or Java. However, for better and for worse, GNAT is a file-oriented compiler. Like others have said (and yet others seem to ignore) a tool Gnatchop exists that generates the files from an Ada text (usually from an .ada file) Eventually you use this tool to start development from an Ada text. But normally you only do this once at the start of development, because compiler messages will point to the 'new' files, so it's more convenient to edit them instead of the old, and there is no tool to keep the new and the old in sync automatically. If you use GPS then probably you will use the respective "project" tools and the "visual" programming style to "manage" the files. Beware of visual spaggetti...