From 7934494471271621668
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ccbfcafab96cf493
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-11-29 10:30:02 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: Pete Becker <petebecker@acm.org>
Newsgroups: comp.std.c++
Subject: Re: Proposol to increase robustness of programs
Date: Thu, 29 Nov 2001 18:29:11 GMT
Organization: Dinkumware, Ltd
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3C067E12.A05EFEF9@acm.org>
References: <3C025715.9050709@earthlink.net> <memo.20011127230352.3025E@brangdon.madasafish.com> <3C04345C.1CB4BEF@acm.org> <3C058424.20EE06BE@wizard.net>
X-Trace: mail2news.demon.co.uk 1007058560 mail2news:21818 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)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: 29 Nov 2001 18:27:03 GMT
X-Accept-Language:  en
Lines: 36
Xref: archiver1.google.com comp.std.c++:8369

"James Kuyper Jr." wrote:
> 
> Pete Becker wrote:
> ...
> > Good point: I missed that in the original discussion. Of course, any
> > maintainence programmer who changes a virtual function to non-virtual
> > should be immediately shot. No trial, no appeal, no pleas for clemency.
> > (Sorry about the harhs images -- I'm watching the news, so I'm in a foul
> > mood).
> 
> How is someone supposed to correct an erroneously virtual function,
> without getting killed?
> 
> ======================================= MODERATOR'S COMMENT:
>  C++ Standard-related content has also died; no more, please.
> 

I don't agree. The standards committee is currently discussing the kinds
of changes that can be made to the standard.

A virtual function, no matter how erroneous, is still part of the
published interface to a class. If it shouldn't have been virtual then
document that it shouldn't be overridden. But don't break users' code.
They won't forgive you. More important, if they decide they can't trust
you then you won't sell to them in the future.

-- 
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

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



