From -5200072604048411623
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,da46f9d6feb862e5
X-Google-Attributes: gidf78e5,public
From: James.Kanze@dresdner-bank.com
Subject: Re: Is this well-formed?
Date: 1999/04/22
Message-ID: <7fn4kf$9fc$1@nnrp1.dejanews.com>#1/1
X-Deja-AN: 469588357
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <7f1nnv$6c$1@weber.techno-link.com> <371655EE.948EA1E6@technologist.com> <QQglev00422.199904161429@relay7.UU.NET>
X-Original-Date: Thu, 22 Apr 1999 12:28:02 GMT
X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I)
X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 193.194.7.71
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Thu Apr 22 12:28:02 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUANx8+ZawEuYhIxRhxAQG5YwH+ImXe2KNM80ydR09RPl0pno0+A3wA6F0x WyuqAunjqNE5GjSqAVa7xcQGM/pHuEBm7NaGfqe1akUoCvbRVdemdw== =A1dU
Newsgroups: comp.std.c++

In article <QQglev00422.199904161429@relay7.UU.NET>,
  "Andrei Alexandrescu" <andrewalex@hotmail.com> wrote:
> David R Tribble <dtribble@technologist.com> wrote in message
> news:371655EE.948EA1E6@technologist.com...
> > Gee, wouldn't it be nice if C++ had a 'null' keyword?
>
> It has. It's spelled "0". I don't see what difference a null keyword would
> make.

    void f( int ) ;
    void f( void* ) ;

    void
    g()
    {
        f( 0 ) ;                //  calls f( int )
        f( null ) ;             //  should call f( void* )
    }

The question isn't whether C++ needs a null keyword, it is rather
whether it is possible to add one without either watering down to the
point of making it useless, or breaking too much existing code.  (I
happen to think it possible, but it is a question on which reasonable
people can differ.  At to whether C++ would be better off with a real,
working null keyword, on the other hand, there really isn't much
discussion possible.)

--
James Kanze                         mailto: James.Kanze@dresdner-bank.com
Conseils en informatique orientie objet/
                        Beratung in objekt orientierter Datenverarbeitung
Ziegelh|ttenweg 17a, 60598 Frankfurt, Germany  Tel. +49 (069) 63 19 86 27

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



