comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@aol.com>
Subject: Re: Accessibility Levels and Library-Level Units
Date: Tue, 24 Sep 2013 12:27:12 -0700 (PDT)
Date: 2013-09-24T12:27:12-07:00	[thread overview]
Message-ID: <5f5b3a27-574d-462e-ae09-dcc6ed3fd861@googlegroups.com> (raw)
In-Reply-To: <e2a5be26-0dcf-4ef1-8487-87873ab87062@googlegroups.com>

On Tuesday, September 24, 2013 12:13:35 PM UTC-7, mockturtle wrote:
> This came to my mind just after clicking "Post"...
> 
> 
> 
> About the fact that   Accessibility_Level_Test is the "main:" I think (but 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 it is because of this that you cannot exploit the fact that Accessibility_Level_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


  parent reply	other threads:[~2013-09-24 19:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24 18:36 Accessibility Levels and Library-Level Units Eryndlia Mavourneen
2013-09-24 18:54 ` Eryndlia Mavourneen
2013-09-24 19:23   ` Adam Beneschan
2013-09-24 19:06 ` mockturtle
2013-09-25  7:46   ` Dmitry A. Kazakov
2013-09-24 19:13 ` mockturtle
2013-09-24 19:23   ` Eryndlia Mavourneen
2013-09-24 19:27   ` Adam Beneschan [this message]
2013-09-24 20:02     ` J-P. Rosen
2013-09-24 20:17       ` Eryndlia Mavourneen
2013-09-24 20:32       ` Adam Beneschan
2013-09-24 19:31 ` Jeffrey Carter
2013-09-24 19:43   ` Eryndlia Mavourneen
2013-09-24 19:59     ` Adam Beneschan
2013-09-24 20:50     ` Robert A Duff
2013-09-25 14:40       ` Eryndlia Mavourneen
2013-09-25 21:34         ` Robert A Duff
2013-09-26 12:46           ` Eryndlia Mavourneen
2013-09-29 21:36             ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox