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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: private types Date: Tue, 21 Mar 2006 08:27:21 +0100 Organization: CERN - European Laboratory for Particle Physics Message-ID: References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> <1259548.CMTukHGvVZ@linux1.krischik.com> <1172812.9zPbPKbdVq@linux1.krischik.com> <1192096.2ItJkc9WpP@linux1.krischik.com> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sunnews.cern.ch 1142926041 27227 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060203 Red Hat/1.7.12-1.1.3.4 X-Accept-Language: en-us, en In-Reply-To: <1192096.2ItJkc9WpP@linux1.krischik.com> Xref: g2news1.google.com comp.lang.ada:3514 Date: 2006-03-21T08:27:21+01:00 List-Id: Martin Krischik wrote: >>NULL is not depreciated. It's defined in the header to be a >>null-pointer constant, which is any integral const expression that >>evaluates to 0. Possible definition is: > > But that is only a C compatibility header No, there is nothing like this in C++. The C library is part of C++ by explicit inclusion, not by compatibility. Consider, for example, general purpose functions, like rand() (this one declared in ). It does not make any sense to say that such functions are C-compatibility stuff only, because that would imply that it's not possible to do even such basic things in "pure" C++. C++ *contains* the C library. It uses different header names (for example, cstdlib instead of stdlib.h) and namespace std (so that you have std::rand, std::printf, etc.), but everything is there and everything is part of C++. Including NULL. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/