From 4865565162636141645
X-Google-Thread: f78e5,33c1ffa960d55699
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!npeer.de.kpn-eurorings.net!feeder1.cambrium.nl!feed.tweaknews.nl!195.238.0.32.MISMATCH!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: musiphil@bawi.org (Seungbeom Kim)
Newsgroups: comp.std.c++
Subject: Re: Suggestion: parent
Date: Wed, 11 May 2005 06:02:33 GMT
Lines: 60
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <d5s4oh$avm$1@news.Stanford.EDU>
References: <4280298A.6090305@usq.edu.au> <2NXfe.4884$eU.970@fed1read07> <42805b14$0$305$4d4ebb8e@businessnews.de.uu.net>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.demon.co.uk 1115791366 21030 158.152.254.254 (11 May 2005 06:02:46 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 May 2005 06:02:46 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id j4B62gEH002817
X-Accept-Language: ko, 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 j4B62XWZ002771;
	Wed, 11 May 2005 16:02:33 +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++:4690

Daniel Kr=FCgler (ne Spangenberg) wrote:
> Hello James Dennett,
>=20
> James Dennett schrieb:
>=20
>> This has been discussed a number of times here:
>> http://groups-beta.google.com/group/comp.std.c++/browse_thread/thread/=
bcdfb80dbd695f38/cc4cde7f50c0fd8b?q=3Dcomp.std.C%2B%2B+parent&rnum=3D4#cc=
4cde7f50c0fd8b=20
>>
>> or
>> http://groups-beta.google.com/group/comp.std.c++/browse_thread/thread/=
745b8fd5e5fadce3/61758e00b849500f?q=3Dcomp.std.C%2B%2B+parent&rnum=3D6#61=
758e00b849500f=20
>>
>> would be examples.  Names suggested include "super" and "inherited".
>> In the past the idea hasn't had all that much support, given that
>> it's not hard to add a typedef manually and that generalizations to
>> multiple inheritance are either restricted or complicated.=20
>=20
>=20
> You are right, but to my opinion it would be quite useful to have an=20
> extended typedef mechanism which allows to
> define a typedef at the point of derivation (This has already been=20
> proposed by others), e.g.
>=20
> class B1 {...};
> class B2 {...};
>=20
> class Derived : public typedef B1 Base1, protected typedef B2 Base2 {
> .
> };
>=20
> or
>=20
> class Derived : public Base1 =3D B1, protected Base2 =3D B2 {
> .
> };
>=20
> This extension has the advantage that complicated, template-based=20
> inheritance relations can be expressed in a
> consistent way.

That has already been mentioned, too: see
http://groups-beta.google.com/group/comp.std.c++/browse_frm/thread/21f10b=
a31b699661/363cc91f87e78bb0#363cc91f87e78bb0
http://groups-beta.google.com/group/comp.std.c++/browse_frm/thread/21f10b=
a31b699661/12eeaba4410ade3e#12eeaba4410ade3e

I like the second one better, because it's more clear and more succinct.

--=20
Seungbeom Kim

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



