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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,da85d9aaf769b16a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.cse.ohio-state.edu!usenet01.sei.cmu.edu!elk.ncren.net!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Generic package parameters not externally visible : what's the rational ? Date: Tue, 27 Oct 2009 19:37:14 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1256686634 32694 192.74.137.71 (27 Oct 2009 23:37:14 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 27 Oct 2009 23:37:14 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:yP3bOQ2GpfbSJ6jGOIdZOZX5Mpo= Xref: g2news2.google.com comp.lang.ada:8819 Date: 2009-10-27T19:37:14-04:00 List-Id: "Jeffrey R. Carter" writes: > One possible rationale is: > > In order to reference the generic parameters from the instance, you have > to have visibility of the instantiation. If you have visibility of the > instantiation, then you have visibility of the generic actual parameters > used in the instantiation. Therefore, you do not need visibility of the > generic parameters from the instance, I agree you don't need it (at least, in the Ada 83 cases). >...so why complicate the language by > providing it? But I don't see why it complicates the language. Seems like a wash in Ada 83. And in Ada 95/2005, I think the existing rule is slightly more complicated (because it special-cases generic formal packages). - BOb