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.58.178.137 with SMTP id cy9mr4686607vec.34.1396633550280; Fri, 04 Apr 2014 10:45:50 -0700 (PDT) X-Received: by 10.50.176.227 with SMTP id cl3mr122021igc.11.1396633550144; Fri, 04 Apr 2014 10:45:50 -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!news.glorb.com!m5no613188qaj.1!news-out.google.com!gi6ni200igc.0!nntp.google.com!l13no2947188iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Apr 2014 10:45:49 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1b19c234-c460-45f7-8864-4ce38caf4aa6@googlegroups.com> Subject: Re: gnatmake error I don't understand From: Adam Beneschan Injection-Date: Fri, 04 Apr 2014 17:45:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:19124 Date: 2014-04-04T10:45:49-07:00 List-Id: On Friday, April 4, 2014 10:14:21 AM UTC-7, Simon Wright wrote: > Robert A Duff writes: >=20 > > Simon Wright writes: > >> (in GNAT) > > In Ada. > ARM 10.2(29)[1] says "An implementation may restrict the kinds of > subprograms it supports as main subprograms. However, an implementation > is required to support all main subprograms that are public > parameterless library procedures." so I think I was strictly right??? > (apart from the "library level" confusion, sorry). I agree with you here; in Ada, it is legal to use a subprogram inside a pac= kage as the main subprogram, if the implementation supports it. I don't kn= ow whether there are any implementations that do, however. =20 (I do know of compilers that go beyond the "required to support" requiremen= ts in other ways, though. Irvine Compiler's Ada compiler allows some libra= ry procedures with parameters to be used as main subprograms, as long as th= e parameters meet certain restrictions, and it uses the command-line argume= nts.) -- Adam