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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ce5636289df1f84 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-08 07:59:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <86772402.0108071439.1c3e1e40@posting.google.com> Subject: Re: pointer in C & in Ada Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 08 Aug 2001 10:59:32 EDT Organization: http://www.newsranger.com Date: Wed, 08 Aug 2001 14:59:32 GMT Xref: archiver1.google.com comp.lang.ada:11617 Date: 2001-08-08T14:59:32+00:00 List-Id: In article <86772402.0108071439.1c3e1e40@posting.google.com>, Lin says... > >If "int *p" declares that pointer p points to integer type, then >what's the meaning of "void *p"? How can I represent it(void *p) in >Ada language? I generally use System.Address (or a private type derived from it). There was a long discussion about this a few years back. What I remember was that this is not guaranteed to be portable (to work on every platform), but no-one could think of an existing platform on which it doesn't work. If an access to Interfaces.C.Char seems more portable, use that. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com