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,34e28efa1a88ae84 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.glorb.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Access procedure to pointer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1211907080 12.201.97.213 (Tue, 27 May 2008 16:51:20 GMT) NNTP-Posting-Date: Tue, 27 May 2008 16:51:20 GMT Organization: AT&T ASP.att.net Date: Tue, 27 May 2008 16:51:20 GMT Xref: g2news1.google.com comp.lang.ada:397 Date: 2008-05-27T16:51:20+00:00 List-Id: S�bastien wrote: > > I need to convert an access to a procedure to a pointer > (System.Address). I can't use the System.Address_To_Access_Conversions > package since I can't define a type on a procedure (only on a procedure > access). Why do you need to do this? Note that System.Address is not necessarily the same as a pointer, whether you mean an Ada access value or a C pointer. Assuming so can cause portability problems, and I can't recall a situation where it was necessary. -- Jeff Carter "What's the amount of the insult?" Never Give a Sucker an Even Break 104