From -7444345077826708047
X-Google-Thread: f78e5,33c1ffa960d55699
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: dsp@bdal.de (=?ISO-8859-1?Q?=22Daniel_Kr=FCgler_=28ne_Spangenberg=29=22?=)
Newsgroups: comp.std.c++
Subject: Re: Suggestion: parent
Date: Wed, 11 May 2005 01:34:39 GMT
Lines: 53
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <42805b14$0$305$4d4ebb8e@businessnews.de.uu.net>
References: <4280298A.6090305@usq.edu.au> <2NXfe.4884$eU.970@fed1read07>
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 1115775287 3775 158.152.254.254 (11 May 2005 01:34:47 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 May 2005 01:34:47 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id j4B1YgEH028163
X-Accept-Language: de-de, de
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 j4B1Ydto028119;
	Wed, 11 May 2005 11:34:39 +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++:4687

Hello James Dennett,

James Dennett schrieb:

> This has been discussed a number of times here:
> http://groups-beta.google.com/group/comp.std.c++/browse_thread/thread/b=
cdfb80dbd695f38/cc4cde7f50c0fd8b?q=3Dcomp.std.C%2B%2B+parent&rnum=3D4#cc4=
cde7f50c0fd8b=20
>
> or
> http://groups-beta.google.com/group/comp.std.c++/browse_thread/thread/7=
45b8fd5e5fadce3/61758e00b849500f?q=3Dcomp.std.C%2B%2B+parent&rnum=3D6#617=
58e00b849500f=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

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.

class B1 {...};
class B2 {...};

class Derived : public typedef B1 Base1, protected typedef B2 Base2 {
=2E
};

or

class Derived : public Base1 =3D B1, protected Base2 =3D B2 {
=2E
};

This extension has the advantage that complicated, template-based=20
inheritance relations can be expressed in a
consistent way.

Greetings from Bremen,

Daniel Kr=FCgler



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



