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: Mon, 18 Dec 2006 14:35:24 +1100 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:SvMpiL9Rt4IGXF1WQ+TkyXj0X2M= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: quokka.wn.com.au 1166412919 202.173.153.89 (18 Dec 2006 12:35:19 +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:7939 Date: 2006-12-18T14:35:24+11:00 List-Id: >>>>> "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? Maybe I am just not awake today, -- Brian May