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,3ce5636289df1f84 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-07 16:31:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: pointer in C & in Ada References: <86772402.0108071439.1c3e1e40@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Tue, 07 Aug 2001 23:31:20 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 997227080 24.7.82.199 (Tue, 07 Aug 2001 16:31:20 PDT) NNTP-Posting-Date: Tue, 07 Aug 2001 16:31:20 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:11554 Date: 2001-08-07T23:31:20+00:00 List-Id: > 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? You can't. What you can do is make a pointer to something that exists, (Interfaces.C.Char for instance) and then, where C would cast the void to some actual thing in order to use it, do the same in Ada by an Unchecked_Conversion to the desired type pointer.