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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b582310cfc030f2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 21:31:46 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 14 Oct 2003 23:31:44 -0500 Date: Tue, 14 Oct 2003 23:32:12 -0500 From: Wes Groleau Reply-To: groleau@freeshell.org Organization: Ain't no organization here! User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, es-mx, pt-br, fr-ca MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Mixed languages and frustration. References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 69.9.86.129 X-Trace: sv3-RCCe8l+AB3fJHzjDfIqERtme0xNZIn3x7T69V9uqfg7zw2vXvGSrTItumgw+CPgUDXV0b1YLQ2Ah4mP!WG3d3d16VsDfx1xSv3KLhECvFNGP/ZzJkjbVQN94/GnDJlcdtbTRs7EgzguQy2682z+p1y5eGJym!TA== X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:877 Date: 2003-10-14T23:32:12-05:00 List-Id: Jeffrey Carter wrote: > Wes Groleau wrote: >> If XYZ is an Ada access type, then >> >> the C pointer to the heap object is XYZ.all'Address > > This will usually work, but is not guaranteed to. System.Address is a > private type because there are systems where an address doesn't map > neatly to an integer, as a C pointer must. However, contrary to a popular belief among Ada programmers, unchecked conversion from access to address will usually NOT work on most systems. -- Wes Groleau "Grant me the serenity to accept those I cannot change; the courage to change the one I can; and the wisdom to know it's me." -- unknown