From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab3fadb7cac7363c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109 Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!nntpfeed.proxad.net!nospam.fr.eu.org!usenet-fr.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: using `use' : what is the best practice ? Date: Tue, 7 Jun 2011 21:38:32 +0200 Organization: cbb software GmbH Message-ID: <1w9xkam751gnx$.1p76eva14vlua.dlg@40tude.net> References: <57e75a35-058c-4172-9a3d-e11e7c5f7697@l2g2000prg.googlegroups.com> <15kaiizx7r3pu$.3bgefr92z5i7$.dlg@40tude.net> <1ofcb8g6dasre.uvhg77u842n6$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: tc19Ht0WERth9C1D2DH6GA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:19687 Date: 2011-06-07T21:38:32+02:00 List-Id: On Tue, 07 Jun 2011 18:29:48 +0100, Simon Wright wrote: > "Dmitry A. Kazakov" writes: > >> Because >> otherwise they would have to mention *all* implicitly or explicitly >> referenced packages in "with" clauses. This mammoth task would go to waste. > > Perhaps that's why the language designers didn't go that way. It was different in n 80s, projects were much smaller. There were almost no reusable components. You could really gasp all relationships between your packages. The structure of packages was very rigid, designed up front. In these days this is just unrealistic, so the coding style must adapt and the language should provide some support. I would prefer stricter rules on declarations hiding each other (requiring explicit resolution of all conflicts) [*]. I definitely want a stronger than "use", transitive clause to incorporate the declaration scope of a package into the scope of another package. I would like to have multiple parents too. ----------------------- * When people play this card against MI, they forget that packages allow exactly same. And if fully qualified names were a solution for packages, why it could not be for MI as well? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de