From 495394826727989278
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7fb1627c98a3c593,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-08-11 16:09:01 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: MikeAlpha@NoSpam_csi.com (Martin Aupperle)
Newsgroups: comp.std.c++
Subject: name lookup with operator new
Date: Sat, 11 Aug 2001 23:07:25 GMT
Organization: Nikoma Mediaworks GmbH
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3b7531a1.197625880@news.nikoma.de>
X-Trace: mail2news.demon.co.uk 997571291 mail2news:20152 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)
NNTP-Posting-Date: Sat, 11 Aug 2001 13:15:19 +0000 (UTC)
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 32
Xref: archiver1.google.com comp.std.c++:6944

Hello,

In CUJ March 2001 (p 67 ff),  Herb Sutter talks about overloading of
new and delete for our own classes. On p 69, he writes:

"Remember, how name lookup works ... [snip]". 

In short, he is saying that the search begins in the actual scope and
continues outward to the scope where the name is eventually found. All
names in that scope overload, no other scopes are considered. 

This looks to me like the standard name lookup algorithm for
functions. But 13.3.1.2.  [over.match.oper] says that lookup rules for
operators work differently - if I understood the Standard right, which
is not guaranteed, of course.

Who is right?

Martin

------------------------------------------------
Martin Aupperle 
MikeAlpha@NoSpam_csi.com
(remove NoSpam_)
------------------------------------------------

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



