From 8656147684815244154
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ccbfcafab96cf493
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-11-29 12:38:01 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "Jim Barry" <jim.barry@bigfoot.com>
Newsgroups: comp.std.c++
Subject: Re: Proposol to increase robustness of programs
Date: Thu, 29 Nov 2001 20:37:39 GMT
Organization: ntl Cablemodem News Service
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <EKwN7.1910$V51.448065@news11-gui.server.ntli.net>
References: <3BFE97B3.91430FB1@wanadoo.fr> <T23N7.64$%j1.23498@news11-gui.server.ntli.net> <3C058126.36357A00@acm.org>
X-Trace: mail2news.demon.co.uk 1007066264 mail2news:23001 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)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Date: Thu, 29 Nov 2001 20:18:44 GMT
Lines: 23
Xref: archiver1.google.com comp.std.c++:8374

Pete Becker wrote:
> 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.

Yes, and then you smack your hand against your forehead and say "Good
grief! Couldn't the compiler have caught a silly mistake like this?". I
would have thought it is better to detect errors at compile time
wherever possible because they are undoubtedly more costly to fix later.

- Jim


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



