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-Thread: 103376,7050446df2bdd3ac X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!texta.sil.at!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Interfacing to C and void* Date: Tue, 21 Feb 2006 19:47:56 +0100 Organization: Cablecom Newsserver Message-ID: <1222093.cUHToOjKuZ@linux1.krischik.com> References: <1324118.dmjBZp3eKX@linux1.krischik.com> NNTP-Posting-Host: 84-74-134-212.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1140632131 17186 84.74.134.212 (22 Feb 2006 18:15:31 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Wed, 22 Feb 2006 18:15:31 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:3073 Date: 2006-02-21T19:47:56+01:00 List-Id: Martin Dowie wrote: > Martin Krischik wrote: >> http://en.wikibooks.org/wiki/Ada_Programming/Memory#Where_is_void.2A.3F > > I would have thought a null record would be a nicer method of declaring > a void and then an access of that for "void *", e.g. > > type Void is null record; > pragma Convention (C, Void); > > type Void_Ptr is access all Void; > pragma Convention (C, Void_Ptr); It's Wiki - anybody can edit and add additional examples. In fact: we welcome other views and examples. so more so merrier. That way the reader can learn about all the alternatives available. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com