From -9036354659789727029
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,bb2cedb5166b3859
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-11-12 16:57:00 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: brangdon@cix.co.uk (Dave Harris)
Newsgroups: comp.std.c++
Subject: Re: Typeof considered harmful (long)
Date: Tue, 13 Nov 2001 00:56:05 GMT
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <memo.20011112225728.3923E@brangdon.madasafish.com>
References: <9so3n6$14m2on$1@ID-49767.news.dfncis.de>
Reply-To: brangdon@cix.co.uk
X-Trace: mail2news.demon.co.uk 1005612969 mail2news:7384 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Orig-NNTP-Posting-Host: host213-120-5-24.webport.bt.net (213.120.5.24)
X-Orig-X-Trace: fu-berlin.de 1005605836 38547412 213.120.5.24 (16 [57443])
Lines: 27
Xref: archiver1.google.com comp.std.c++:8138

anthwil@nortelnetworks.com (Anthony Williams) wrote (abridged):
> This would break existing template code, which allows L and R to be
> non-deduced, and explicitly specified. This is a feature used in real 
> code.

Presumably explicit instantiation would still be permitted. Eg calls like:

    double x = func<int,int,double,double>( 1, 2 );

would compile with the same semantics as now. Only types not specified 
explicitly and not deduced from arguments would be deduced from their 
initialising expression. It would be a last resort.

I have to say, the phrase "last resort" is very disconcerting when used in 
conjunction with name look-up rules.

  Dave Harris, Nottingham, UK | "Weave a circle round him thrice,
      brangdon@cix.co.uk      |   And close your eyes with holy dread,
                              |  For he on honey dew hath fed
 http://www.bhresearch.co.uk/ |   And drunk the milk of Paradise."

---
[ 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://www.research.att.com/~austern/csc/faq.html                ]



