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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.netfront.net!not-for-mail From: Tarek Ghaleb Newsgroups: comp.lang.ada Subject: Re: System.Address to Access to function/procedure conversion Date: Sun, 28 Jul 2013 19:05:47 +0000 (UTC) Organization: Netfront http://www.netfront.net/ Message-ID: References: NNTP-Posting-Host: 77.247.181.164 X-Trace: adenine.netfront.net 1375038347 41820 77.247.181.164 (28 Jul 2013 19:05:47 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sun, 28 Jul 2013 19:05:47 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: news.eternal-september.org comp.lang.ada:16582 Date: 2013-07-28T19:05:47+00:00 List-Id: On 2013-07-28, Jeffrey Carter wrote: > If you want any semblance of portability, then you should never pass > an Address to C. You should only pass a C-convention access type. I agree, it is a much cleaner and portable way to do it. > ... there is no guarantee that Ada's Address has any relationship to > a C pointer. Interesting, I thought System.Address was equivalent to a C pointer, and I've seen it used that way in many snippets of code, etc. For things like void*, if not represented as System.Address, how would it be represented then? Tarek. -- For fools rush in where angels fear to tread. -- Alexander Pope --- news://freenews.netfront.net/ - complaints: news@netfront.net ---