From -5681201001725564772
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,bed6baff9e441d5c
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-02-03 11:57:43 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: dlagno@mail.nnov.ru (Denis Lagno)
Newsgroups: comp.std.c++
Subject: Re: proposal: "virtual restrict" inheritance
Date: Mon, 3 Feb 2003 19:57:39 +0000 (UTC)
Organization: http://groups.google.com/
Lines: 20
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <5a0f3464.0302021851.7ac88c96@posting.google.com>
References: <5a0f3464.0302020455.25d887a9@posting.google.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1044302259 11128 10.0.0.1 (3 Feb 2003 19:57:39 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 3 Feb 2003 19:57:39 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18fmin-0002tK-00
	for mail2news@news.news.demon.net; Mon, 03 Feb 2003 19:57:38 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id GAA29588; Tue, 4 Feb 2003 06:57:32 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ncar.ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: 3 Feb 2003 02:51:40 GMT
X-Spam-Status: No, hits=-4.9 required=5.0
	tests=NOSPAM_INC,REFERENCES,SPAM_PHRASE_00_01
	version=2.41
Xref: archiver1.google.com comp.std.c++:17753

Oh!  BTW.  Look at parallel thread with Daniel's proposal about
exclusive inheritance.  It seems to me that my proposal as well solves
that problem just as a byproduct.

You just do something like

class solitair_t {};

class Human: public virtual restrict autism_t { ... };

class Engel: public virtual restrict autism_t { ... };

and then you cannot inherit from both..

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



