comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Multiple procedures in the same adb file?
Date: Sun, 11 Jan 2015 23:38:34 +0200
Date: 2015-01-11T23:38:34+02:00	[thread overview]
Message-ID: <chg8qqFe9apU1@mid.individual.net> (raw)
In-Reply-To: <wcc1tn1m6yr.fsf@shell01.TheWorld.com>

On 15-01-11 21:51 , Robert A Duff wrote:
> It is unwise to have procedures outside of packages

Why "unwise"? I agree it is unusual, but I find it is sometimes useful, 
in particular to have subprograms which are children of packages but are 
their own compilation units. In a layered architecture, such subprograms 
are sort of in a layer between the higher layer that contains the 
declaration of the parent package, and the lower layer that contains the 
body of that package.

In language-lawyer terms, perhaps such subprograms are not really 
"outside of packages", because child units are in some sense "inside" 
their parents, but the child subprograms are not "inside" any package in 
terms of source-code files.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .

  parent reply	other threads:[~2015-01-11 21:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 18:37 Multiple procedures in the same adb file? John Smith
2015-01-11 19:05 ` John Smith
2015-01-11 19:51 ` Robert A Duff
2015-01-11 20:38   ` John Smith
2015-01-11 21:02     ` Robert A Duff
2015-01-11 21:51       ` John Smith
2015-01-12  0:53         ` Robert A Duff
2015-01-12  0:55         ` Robert A Duff
2015-01-13  0:11       ` Randy Brukardt
2015-01-11 21:38   ` Niklas Holsti [this message]
2015-01-12  0:53     ` Robert A Duff
2015-01-12  9:01       ` J-P. Rosen
2015-01-12 14:57         ` Robert A Duff
2015-01-13  0:09           ` Randy Brukardt
2015-01-12  0:55     ` Robert A Duff
2015-01-11 20:04 ` Jeffrey Carter
replies disabled

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