From 2150329174878235465
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,da46f9d6feb862e5
X-Google-Attributes: gidf78e5,public
From: "Peter Dimov" <pdimov@techno-link.com>
Subject: Re: Is this well-formed?
Date: 1999/04/23
Message-ID: <7fn67r$pg5$1@weber.techno-link.com>#1/1
X-Deja-AN: 469856987
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7f1nnv$6c$1@weber.techno-link.com> <371655EE.948EA1E6@technologist.com> <QQglev00422.199904161429@relay7.UU.NET>
X-Original-Date: Thu, 22 Apr 1999 15:33:18 +0300
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 924845186 27579 128.250.29.16 (23 Apr 1999 05:26:26 GMT)
Organization: Multi Media Ltd.
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANyAEcuEDnX0m9pzZAQGziQF+JhtSr+VSuqGhLVhfdk82SlNGbVBaBKSI ZDv72B1k9t2b6EOf4TwarsUvEPgZX7B1 =e3lC
X-MSMail-Priority: Normal
NNTP-Posting-Date: 23 Apr 1999 05:26:26 GMT
Newsgroups: comp.std.c++

Andrei Alexandrescu <andrewalex@hotmail.com> wrote in message
news:QQglev00422.199904161429@relay7.UU.NET...
> 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.

It would make a difference if it had a unique type that is not 'const int'.

> As of the original poster's code: I think it's correct. Template function
> matching is considered prior doing any conversion. It will fail. Then
> regular functions will be considered, with conversions and all. Therefore
> f(int *) will kick in.

This was my reasoning too. Thanks to all that provided feedback on the
issue.

--
Peter Dimov
Multi Media Ltd.
---
[ 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              ]



