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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.69.6 with SMTP id x6mr5577493qai.0.1375385294901; Thu, 01 Aug 2013 12:28:14 -0700 (PDT) X-Received: by 10.50.108.47 with SMTP id hh15mr250378igb.12.1375385294858; Thu, 01 Aug 2013 12:28:14 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!fx3no510153qab.0!news-out.google.com!he10ni48qab.0!nntp.google.com!fx3no510146qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 1 Aug 2013 12:28:14 -0700 (PDT) In-Reply-To: <8538qtfnzl.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=63.80.193.9; posting-account=nD_N8QoAAACgNfe5vMwm0rMAu4pgYumJ NNTP-Posting-Host: 63.80.193.9 References: <8538qtfnzl.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7ceec423-82d1-4408-8b48-c7e344dc9848@googlegroups.com> Subject: Re: GNAT GPL is proving...educational From: Alan Jump Injection-Date: Thu, 01 Aug 2013 19:28:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 3203 Xref: news.eternal-september.org comp.lang.ada:16640 Date: 2013-08-01T12:28:14-07:00 List-Id: Thanks for the input. However, these questions were answered earlier. - - 73 de N5ILN Alan On Thursday, August 1, 2013 8:07:58 AM UTC-7, Stephen Leake wrote: > Alan Jump writes: > > > > > On Sunday, July 21, 2013 8:26:10 PM UTC-7, Jeffrey Carter wrote: > > > > > >> Stacks.Vector is a child package; its parent is package Stacks. Package Stacks > > >> must exist to have child packages. > > > > > > Tried it. Didn't work. GNAT responded "stacks.vector.ads language > > > unknown". > > > > Try again, more carefully. The file name should be "stacks-vector.ads". > > > > Slow down, read the manual, be careful. Ada does work, GNAT does work; > > there are millions of lines of code out there proving it. > > > > > I don't mind this at all. Especially with the option to generate body > > > stubs from spec files. It works to make sure the body I write meets > > > the spec I write. I wish Java had been that strict when I was learning > > > that language; it would have saved me many hours of debugging, not to > > > mention avoiding more than a few platefuls of spaghetti code. All I'm > > > pointing out here is that it's forcing a shift in thinking about how I > > > draft both specs and bodies, and that's a Very Good Thing(tm). > > > > Except that you seem to have missed that it does support parent and > > child packages, which is a very important feature. > > > > >> GNAT also requires one compilation unit per source file, but this again is not > > >> something defined by the language, and many compilers will accept files > > >> containing multiple compilation units. Many experienced Ada software engineers > > >> find having a single compilation unit per file a good idea. > > > > > > Here's another neophyte question, then...are specs and bodies > > > considered separate compilation units? > > > > Yes. > > > > -- > > -- Stephe