From 662437059313651742
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,da46f9d6feb862e5
X-Google-Attributes: gidf78e5,public
From: "Andrei Alexandrescu" <andrewalex@hotmail.com>
Subject: Re: Is this well-formed?
Date: 1999/04/22
Message-ID: <QQglev00422.199904161429@relay7.UU.NET>#1/1
X-Deja-AN: 469476552
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7f1nnv$6c$1@weber.techno-link.com> <371655EE.948EA1E6@technologist.com>
X-Original-Date: Fri, 16 Apr 1999 10:19:14 -0400
X-Priority: 3
X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 924770665 23554 128.250.29.16 (22 Apr 1999 08:44:25 GMT)
Organization: -
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANx7hUOEDnX0m9pzZAQHHdgF5AfGTiGk4t0dhpVDWXxKZgM7n2oNkqp+d hdSB+ryXv/7XiY7mZFaOii1cR5dAOjgG =HX1g
X-MSMail-Priority: Normal
NNTP-Posting-Date: 22 Apr 1999 08:44:25 GMT
Newsgroups: comp.std.c++

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.

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.

Andrei
---
[ 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              ]



