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: 103376,8f7d6c5172a1d41b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: How to get around "access type must not be outside generic unit" References: <45853BDC.5000902@obry.net> Date: Tue, 19 Dec 2006 10:15:35 +1100 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:Bcfl6zqCFblqaqsu3RHIQo55cto= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: quokka.wn.com.au 1166483727 202.173.153.89 (19 Dec 2006 08:15:27 +0800) X-Complaints-To: abuse@westnet.com.au Path: g2news2.google.com!news3.google.com!news.glorb.com!quokka.wn.com.au!not-for-mail Xref: g2news2.google.com comp.lang.ada:7947 Date: 2006-12-19T10:15:35+11:00 List-Id: >>>>> "Jean-Pierre" == Jean-Pierre Rosen writes: Jean-Pierre> Just instantiate that generic inside a procedure. Jean-Pierre> Install becomes a local function of that procedure, Jean-Pierre> but you would keep a 'access on it in a global Jean-Pierre> structure. OK, I understand up to here. Jean-Pierre> Taking the 'access in the specification is illegal, Jean-Pierre> and (as explained above), the instantiation would be Jean-Pierre> illegal. I get lost here. Why is taking the 'access value in the specification illegal if the generic has been instantiated inside a procedure? -- Brian May