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.96.136 with SMTP id h8mr1654404qan.8.1380050833556; Tue, 24 Sep 2013 12:27:13 -0700 (PDT) X-Received: by 10.182.105.133 with SMTP id gm5mr102610obb.38.1380050833035; Tue, 24 Sep 2013 12:27:13 -0700 (PDT) Path: border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!news.glorb.com!d5no1780177qap.0!news-out.google.com!9ni111qaf.0!nntp.google.com!d5no1780168qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 24 Sep 2013 12:27:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=RxNzCgoAAACA5KmgtFQuaU-WaH7rjnAO NNTP-Posting-Host: 66.126.103.122 References: <58149dd9-990d-415c-a121-bc7a1a69473c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5f5b3a27-574d-462e-ae09-dcc6ed3fd861@googlegroups.com> Subject: Re: Accessibility Levels and Library-Level Units From: Adam Beneschan Injection-Date: Tue, 24 Sep 2013 19:27:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:183448 Date: 2013-09-24T12:27:12-07:00 List-Id: On Tuesday, September 24, 2013 12:13:35 PM UTC-7, mockturtle wrote: > This came to my mind just after clicking "Post"... >=20 >=20 >=20 > About the fact that Accessibility_Level_Test is the "main:" I think (bu= t I never tested it) that you could have two legal Ada codes, one that uses= Accessibility_Level_Test as "main" and the other that uses it as a "normal= " procedure. (For example, if you use GNAT, the fact that a procedure is a= "main" it is written in the project file, not in the Ada source.) Maybe i= t is because of this that you cannot exploit the fact that Accessibility_Le= vel_Test is the main. Even if the compiler knew Accessibility_Level_Test were the main subprogram= , nothing would prevent some other subprogram from calling it (recursively)= . This doesn't commonly happen, though. -- Adam