comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Trivia: Ada packages are great!
Date: Sun, 11 Nov 2018 01:01:17 -0600
Date: 2018-11-11T01:01:17-06:00	[thread overview]
Message-ID: <ps8k3t$g1i$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: f57a37a4-9557-40d8-8f4f-1d97751fe4ea@googlegroups.com


"Maciej Sobczak" <see.my.homepage@gmail.com> wrote in message 
news:f57a37a4-9557-40d8-8f4f-1d97751fe4ea@googlegroups.com...
...
> GNAT accepts this with Test as a starting point. No
> specification files, no packages. Even "with Foo;" works fine
> without any separate spec file.
> Hey, we are closer to the obfuscated Ada context!

Sure, but the names of compilation units still have to be unique -- no 
overloading is allowed. So there still can be used to unambigiously name 
things. Ada 83 was designed carefully so that nearly(*) everything can be 
named with a full expanded name starting with the compilation unit. That was 
done in particular to help with "programming-in-the-large", and specifically 
to help with integration of large packages. There is always a way to work 
around an integration conflict without restructuring anything. (Whether 
restructuring would be a better idea is a separate issue, of course.) Of 
course, if people avoided

(*) Items in unnamed blocks and loops don't have full expanded names, but 
since these are local by nature they hardly ever are involved in an 
integration conflict. That's more of a problem for language-defined images 
(of exceptions and tags, in particular).

                                              Randy.


  parent reply	other threads:[~2018-11-11  7:01 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02 21:11 Trivia: Ada packages are great! Olivier Henley
2018-11-05 10:39 ` Maciej Sobczak
2018-11-05 12:39   ` Björn Lundin
2018-11-06  8:52     ` Maciej Sobczak
2018-11-06 13:02       ` Olivier Henley
2018-11-07  7:02         ` Maciej Sobczak
2018-11-07  8:55           ` G. B.
2018-11-07 12:40           ` Olivier Henley
2018-11-08 12:35             ` Maciej Sobczak
2018-11-08 13:12               ` Olivier Henley
2018-11-09  2:15               ` gautier_niouzes
2018-11-07  8:53       ` Björn Lundin
2018-11-07 10:56         ` Maciej Sobczak
2018-11-07 18:27           ` G. B.
2018-11-08 12:20             ` Maciej Sobczak
2018-11-09  5:45               ` G. B.
2018-11-09  8:24                 ` Maciej Sobczak
2018-11-09  9:03                   ` Dmitry A. Kazakov
2018-11-12  6:33                   ` G. B.
2018-11-05 17:20   ` Olivier Henley
2018-11-05 17:56   ` Olivier Henley
2018-11-05 18:07     ` Simon Wright
2018-11-05 19:37       ` Jeffrey R. Carter
2018-11-05 20:04         ` Olivier Henley
2018-11-05 20:12         ` Olivier Henley
2018-11-05 18:29     ` Olivier Henley
2018-11-05 20:03     ` Olivier Henley
2018-11-05 20:40     ` Olivier Henley
2018-11-08  4:46 ` gautier_niouzes
2018-11-08 12:28   ` Maciej Sobczak
2018-11-08 13:27     ` Olivier Henley
2018-11-08 14:44     ` gautier_niouzes
2018-11-08 15:01       ` Olivier Henley
2018-11-08 16:14         ` Simon Wright
2018-11-08 16:28           ` Olivier Henley
2018-11-11  6:49             ` Randy Brukardt
2018-11-11  7:01     ` Randy Brukardt [this message]
2018-11-11  7:01   ` Randy Brukardt
replies disabled

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