comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: decomposing large packages
Date: Thu, 9 Jan 2020 09:58:07 +0100
Date: 2020-01-09T09:58:07+01:00	[thread overview]
Message-ID: <qv6pv0$rpt$1@gioia.aioe.org> (raw)
In-Reply-To: e36b4c98-10fb-4012-b0ff-91279919fd1e@googlegroups.com

On 2020-01-09 09:25, mario.blunk.gplus@gmail.com wrote:

> that solves the problem for the moment. When working with subunits, it is not obvious for the newcomer that:
> 1. the subunit file must be named P-n.adb . Means the same notation must be used as if it where a child unit of P.
> 2. there is no spec file (P-n.ads) required.
> 3. in the subunit file P-n.adb there must NOT be an entry like "package body P.n is" (and of course no "end P.n;") as one does in child units.
> 4. no other procedure or function must exist in P-n.adb .
> 
> I wonder why the authors of Ada training books don't point out such things ...

Because file naming and one compilation unit per source file limitation 
are GNAT specific.

The language does not dictate this. Other compilers use different 
approaches.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2020-01-09  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08 15:56 decomposing large packages mario.blunk.gplus
2020-01-08 16:36 ` Dmitry A. Kazakov
2020-01-09  8:25   ` mario.blunk.gplus
2020-01-09  8:58     ` Dmitry A. Kazakov [this message]
2020-01-09 18:24       ` G. B.
2020-01-10 20:03         ` mario.blunk.gplus
2020-01-08 16:45 ` Simon Wright
2020-01-09  8:28   ` mario.blunk.gplus
2020-01-09 17:43     ` Simon Wright
2020-01-10 20:00       ` mario.blunk.gplus
2020-01-08 21:41 ` Shark8
replies disabled

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