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,ec21c3c7cdc7ff3e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: private types Date: Mon, 20 Mar 2006 20:32:57 +0100 Organization: Cablecom Newsserver Message-ID: <4672587.DAoJQAFo3c@linux1.krischik.com> References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> <1259548.CMTukHGvVZ@linux1.krischik.com> <1172812.9zPbPKbdVq@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 1142884807 21865 84.74.134.212 (20 Mar 2006 20:00:07 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Mon, 20 Mar 2006 20:00:07 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:3499 Date: 2006-03-20T20:32:57+01:00 List-Id: Maciej Sobczak wrote: > The interesting question is why it might make any difference to you? > The only thing that really matters is that the null pointer is distinct > from any other valid pointer, in which case it's equivalent to Ada's > null. For C++ I can - barely - see that but C is supposed to system programming language suitable for kernel and/or embedded progamming. Taking that into account: How actually are the languages implementers to implement "distinct from any other valid pointer". If you are implementing a Ring 0 device driver on x86 all pointers are valid and on PC architecture there is memory at (void*0) which one might want to access. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com