comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Stackoverflow answer in need of update?
Date: Wed, 25 Feb 2015 05:14:06 -0800 (PST)
Date: 2015-02-25T05:14:06-08:00	[thread overview]
Message-ID: <5ed1d53a-de95-4fc3-8d03-85ebfa3d4e58@googlegroups.com> (raw)
In-Reply-To: <mcifuj$dq8$1@dont-email.me>

Am Dienstag, 24. Februar 2015 19:31:52 UTC+1 schrieb J-P. Rosen:
...
> Program units yes, but not compilation units. Watchout the vocabulary ;-)

Hm, there is no syntactical categorie program_unit. There is

  RM 10.1.1(2) compilation ::= {compilation_unit}

and GNAT in *standard mode* requires one compilation_unit per file (as does APEX).

However, if you write e.g.

  gnatmake some_unit.ads,

what really happens is that some_unit is the given compilation_unit, but GNAT (and for that matter any modern compiler) will make a compilation of all compilation_units needed to compile the given unit. This compilation will then generally comprise many files.


  reply	other threads:[~2015-02-25 13:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23 17:50 Stackoverflow answer in need of update? G.B.
2015-02-23 21:04 ` Simon Wright
2015-02-23 21:10   ` Simon Wright
2015-02-24 12:21     ` G.B.
2015-02-24 17:55 ` Florian Weimer
2015-02-24 18:30   ` J-P. Rosen
2015-02-25 13:14     ` AdaMagica [this message]
2015-02-25 14:02       ` J-P. Rosen
2015-02-27 10:28         ` AdaMagica
2015-02-27 11:00           ` J-P. Rosen
2015-02-27 13:53             ` AdaMagica
replies disabled

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