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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,73175d2d01a1b1dd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.135 with SMTP id r7mr25825692pba.8.1317083666551; Mon, 26 Sep 2011 17:34:26 -0700 (PDT) Path: lh7ni5626pbb.0!nntp.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: subprogram must not be deeper than access type Date: Mon, 26 Sep 2011 20:34:25 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1317083666 7627 192.74.137.71 (27 Sep 2011 00:34:26 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 27 Sep 2011 00:34:26 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:oGvQi7NqlqHH7UcZYEhiG/1JN90= Xref: news1.google.com comp.lang.ada:18143 Content-Type: text/plain; charset=us-ascii Date: 2011-09-26T20:34:25-04:00 List-Id: "Randy Brukardt" writes: > That's how Janus/Ada worked for its early life. Yes, I know. That's a perfectly reasonable way to do things. Too bad Ada doesn't allow it. >...(Strictly speaking, it was > the elaboration of a package body that was the main subprogram, typically > that would have just been a call.) That's just a detail. >...Eventually, we had to change it to a > subprogram in order to run the ACVC (now ACATS). For a long time, there was > an option to have a package be the main, but we got rid of it at some point > when it was causing some bugs. GNAT has such an option. - Bob