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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,72113392dc4997bd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-16 20:15:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!195.40.4.120.MISMATCH!easynet-quince!easynet.net!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Subprogram Pointer in a Generic Date: Thu, 17 Apr 2003 03:15:34 +0000 (UTC) Organization: DnS network Message-ID: References: <1ftiuys.1twhum2q9qa00N%claveman@grzorgenplatz.net> NNTP-Posting-Host: m34.net81-65-250.noos.fr X-Trace: melchior.cuivre.fr.eu.org 1050549334 75854 81.65.250.34 (17 Apr 2003 03:15:34 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 17 Apr 2003 03:15:34 +0000 (UTC) User-Agent: slrn/0.9.7.4 (FreeBSD) Cache-Post-Path: willow.dyn.rfc1149.net!unknown@localhost X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.lang.ada:36226 Date: 2003-04-17T03:15:34+00:00 List-Id: >> My problem occurs when I want to call this procedure from within a >> generic package. I can't, because 3.10.2(32) says "If the subprogram >> denoted by P [the prefix of 'Access] is declared within a generic body, >> S [the access-to-subprogram type of the formal parameter] shall be >> declared within the generic body." > > Why are you passing a procedure access to a generic? > > Why not simply pass the procedure as a simple generic parameter: It is the other way around: he wants to call the procedure taking the access-to-subprogram formal parameter *from* within the body of the generic package. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam