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: 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!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: gnatmake error I don't understand Date: Fri, 04 Apr 2014 09:41:18 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1396618875 13162 192.74.137.71 (4 Apr 2014 13:41:15 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 4 Apr 2014 13:41:15 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:OwPLHoXwoV15JP1GGuCLgnq8ujI= Xref: news.eternal-september.org comp.lang.ada:19120 Date: 2014-04-04T09:41:18-04:00 List-Id: Simon Wright writes: > (in GNAT) In Ada. >... a main program needs to be at library level; you can't declare > Habits inside package Texthabits and use it as a main. It must be a library unit. ("Library level" means something else.) You can make it a child unit, though. 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). > I'm glad to see LinuxFormat supporting Ada, though I have to say that at > a glance the coding style isn't what the community would recommend (eg, > CamelCase rather than Ada_Style). Agreed. >...And the body doesn't need to re-with > packages withed by the spec. Yes. Turn on a high level of warnings to catch mistakes like that. - Bob