From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,YOU_INHERIT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5af5c381381ac5a7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!i31g2000yqm.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! Date: Mon, 7 Jun 2010 01:13:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0ee46153-34f6-4173-b314-5c4a8fd494f7@i31g2000yqm.googlegroups.com> References: NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1275898419 24701 127.0.0.1 (7 Jun 2010 08:13:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Jun 2010 08:13:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i31g2000yqm.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:11389 Date: 2010-06-07T01:13:39-07:00 List-Id: On 6 Cze, 10:55, "Martin Krischik" wrote: > > Some people still think this is still a better trade-off over C++ style= d > > multiple inheritance because of the dreaded "diamond" problem. > > which is easily solved by marking classes virtual. One should just make a= =A0 > habit of defining classes like this: > > virtual Base > =A0 =A0{ > =A0 =A0public: > =A0 =A0 =A0virtual ~Base () > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0=85 > =A0 =A0 =A0 =A0} > =A0 =A0} That will not work. Not just because it is invalid syntax, but because "virtualness" is a property of the relation between classes, not the property of any particular class. > And suddenly all your virtual inheritance needs work flawlessly. There ar= e =A0 > just too many C++ programmers out there who do not know that. Not really, see my answer to your other post. -- Maciej Sobczak * http://www.inspirel.com YAMI4 - Messaging Solution for Distributed Systems http://www.inspirel.com/yami4