From 9129813545317331810
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ccbfcafab96cf493
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-11-30 10:00:01 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: pdimov@mmltd.net (Peter Dimov)
Newsgroups: comp.std.c++
Subject: Re: Proposol to increase robustness of programs
Date: Fri, 30 Nov 2001 17:59:09 GMT
Organization: http://groups.google.com/
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <7dc3b1ea.0111300954.186f1ff5@posting.google.com>
References: <3BFE97B3.91430FB1@wanadoo.fr> <T23N7.64$%j1.23498@news11-gui.server.ntli.net> <3C058126.36357A00@acm.org>
X-Trace: mail2news.demon.co.uk 1007143158 mail2news:3438 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Date: 30 Nov 2001 17:54:50 GMT
Lines: 30
Xref: archiver1.google.com comp.std.c++:8384

Pete Becker <petebecker@acm.org> wrote in message news:<3C058126.36357A00@acm.org>...

[override keyword]

> The reason that it doesn't get any support from me is that it solves a
> non-problem. If you want to be sure that your member function overrides
> a virtual function in the base, write a test case that calls it through
> the base. You have to do this anyway, in order to check the behavior of
> your derived class. So this error falls out automatically from routine
> testing.

You are right. Programmers that use unit tests (group #1) don't need
override.

On the other hand, programmers that do not do proper testing (group
#2) will benefit from it. The cost will be an extra keyword.

Not giving group #2 what they want will not automatically make them
migrate to #1.

--
Peter Dimov
Multi Media Ltd.

---
[ 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.research.att.com/~austern/csc/faq.html                ]



