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 Path: g2news2.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Erdmann Newsgroups: comp.lang.ada Subject: Re: How to get around "access type must not be outside generic unit" Date: Mon, 18 Dec 2006 21:32:04 +0100 Message-ID: <4586FAC4.2000003@snafu.de> References: <45853BDC.5000902@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 2P+mbfqFYL6kYtQm1G0CkQCg4QBhll1dNabBgFiFZHeFEPO1UypFE+ X-Orig-Path: hal.boavista.snafu.de!news User-Agent: Thunderbird 1.5 (X11/20060317) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7945 Date: 2006-12-18T21:32:04+01:00 List-Id: Brian May wrote: >>>>>> "Pascal" == Pascal Obry writes: > > Pascal> Solution 2) Move access to generic spec > > ... > > Pascal> begin Register ("Doit", Install_Access); end Usage; > > How is this any different from using Install'Access? > > I would have thought since Install was defined within the generic > unit, Install'Access would be OK. > > Or does Install'Access imply a temporary local variable? > > Put another way, how can you create a dangling pointer with > Install'Access but not Install_Access? This is exactly what came into my mind when i was looking at the offending code. > > Maybe I am just not awake today,