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=unavailable autolearn_force=no version=3.4.4 Path: backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!easy.in-chemnitz.de!news2.arglkargh.de!news.ecp.fr!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: gnatmake error I don't understand Date: Fri, 4 Apr 2014 16:27:26 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1396646847 2373 69.95.181.76 (4 Apr 2014 21:27:27 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 4 Apr 2014 21:27:27 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: number.nntp.dca.giganews.com comp.lang.ada:185530 Date: 2014-04-04T16:27:26-05:00 List-Id: "Robert A Duff" wrote in message news:wcclhvlmcu9.fsf@shell01.TheWorld.com... ... > IMHO the language would be better without library subprograms. > The main procedure should be inside a package (but as you point > out, that's unfortunately illegal). The very early versions of Janus/Ada required a package to be the main -- as there were no library-level subprograms at the time. But we just used the elaboration of that package to be a main -- we just force it to elaborate last; no way to use a subprogram inside of the package as a main (short of calling it in the begin part of the package). Janus/Ada still has an option to allow that sorrt of main (dunno if it actually works, I don't think anyone has used it for decades). Randy.