From -6201922220224263626
X-Google-Thread: f78e5,33c1ffa960d55699
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.stueberl.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: hyrosen@mail.com (Hyman Rosen)
Newsgroups: comp.std.c++
Subject: Re: Suggestion: parent
Date: Mon, 16 May 2005 16:18:34 GMT
Lines: 15
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <200505112141.j4BLfVuC069482@horus.isnic.is>
References: <4280298A.6090305@usq.edu.au> <2NXfe.4884$eU.970@fed1read07>
 <42805FE7.8030405@usq.edu.au>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1116260320 14222 158.152.254.254 (16 May 2005 16:18:40 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 16 May 2005 16:18:40 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j4GGIYcc028403;
	Tue, 17 May 2005 02:18:34 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:4750

Ron House wrote:
> Perhaps it is easily disposed of by treating it like ambiguous function calls -
 > if there is no ambiguity, it gives you the parent, otherwise you can't use it.

The way it should work is that "inherited::name" means lookup "name" as if this
class did not define it. If there are multiple base classes, all of them are
searched. If the result is ambiguous (after applying the overloading rules if
it's a function) or missing, then you get a compilation error.

---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



