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!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: private types Date: 20 Mar 2006 10:01:05 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> <1259548.CMTukHGvVZ@linux1.krischik.com> <9006286.GT9LdmDZaR@linux1.krischik.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls4.std.com 1142866865 11909 192.74.137.71 (20 Mar 2006 15:01:05 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 20 Mar 2006 15:01:05 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:3489 Date: 2006-03-20T10:01:05-05:00 List-Id: "Dr. Adrian Wrigley" writes: > On Sun, 19 Mar 2006 20:20:52 +0100, Martin Krischik wrote: > > > 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. > > It is (or was) quite a common interview question, to see if > C (and C++) programmers know their subject properly. As you > say, Robert, most don't. Martin said that. I have no idea how close his .1% estimate is to the truth. It's certainly true that many programmers learn their programming languages by experiment -- what works is all-too-often assumed to be what the language is. - Bob