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-08 09:50:10 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: pointer in C & in Ada Date: Wed, 08 Aug 2001 18:52:09 +0200 Organization: Enyo's not your organization Message-ID: <878zgujxza.fsf@deneb.enyo.de> References: <86772402.0108071439.1c3e1e40@posting.google.com> <87r8umlx13.fsf@deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:11624 Date: 2001-08-08T18:52:09+02:00 List-Id: Ted Dennison writes: >>You can use chars_ptr instead. It is guaranteed to have the same >>representation as void * in C (not by the Ada standard, but by the C >>standard). > > ..assuming the compiler used for the C code bothers to follow that > standard. If the compiler is broken, all bets are off anyway. For this particular issue, I think it's highly unlikely you will find a compiler which gets this wrong because historically, char * was used in places where now, you are supposed to use void *.