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 Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: private types Date: Sun, 19 Mar 2006 20:20:52 +0100 Organization: Cablecom Newsserver Message-ID: <9006286.GT9LdmDZaR@linux1.krischik.com> References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> <1259548.CMTukHGvVZ@linux1.krischik.com> NNTP-Posting-Host: 84-74-134-212.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: news.hispeed.ch 1142797510 2778 84.74.134.212 (19 Mar 2006 19:45:10 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sun, 19 Mar 2006 19:45:10 +0000 (UTC) User-Agent: KNode/0.10.1 Xref: g2news1.google.com comp.lang.ada:3463 Date: 2006-03-19T20:20:52+01:00 List-Id: Robert A Duff wrote: > I believe the C++ rule is that 0 (written in your program) is the same > thing as NULL -- but it need not be represented internally by > all-zero-bits. �Casting the integer zero to a pointer, however, > does not necessarily result in NULL. �That's sort of confusing, > but if you understand the rules, the "quite challenging" comment > above does not hold. Super! And how many (in %) of C++ programmer actually know that. By guess is 0.1%. And indeed I is the main problem: Only a very few C/C++ programmers actually master the language. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com