From 2401929536775213929
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,c9300cc6a0b28243
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-08-04 19:22:47 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: brangdon@cix.co.uk (Dave Harris)
Newsgroups: comp.std.c++
Subject: Re: no_base_call
Date: Tue, 5 Aug 2003 02:22:42 +0000 (UTC)
Lines: 21
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <memo.20030804224451.61301B@brangdon.madasafish.com>
References: <_azXa.385380$jp.11007710@twister.southeast.rr.com>
X-Trace: mail2news.demon.co.uk 1060050163 10848 10.0.0.1 (5 Aug 2003 02:22:43 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 5 Aug 2003 02:22:43 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 19jrTF-0002op-00
	for mail2news@news.news.demon.net; Tue, 05 Aug 2003 02:22:42 +0000
X-Received: by mulga.cs.mu.OZ.AU
	id MAA02586; Tue, 5 Aug 2003 12:22:38 +1000 (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++@ucar.edu
X-Newsgroups: comp.std.c++
X-Reply-To: brangdon@cix.co.uk
X-Orig-NNTP-Posting-Host: pc1-clif1-6-cust113.nott.cable.ntl.com (80.4.200.113)
X-Orig-X-Trace: news.uni-berlin.de 1060033430 26958584 80.4.200.113 (16 [57443])
X-Spamscanner: mailbox2.ucsd.edu  (v1.2 May 26 2003 01:55:38, -0.7/5.0 2.55)
X-MailScanner: PASSED (v1.2.7 71889 h74Lhpk7095301 mailbox2.ucsd.edu)
X-Spam-Status: No, hits=-5.5 required=5.0
	tests=AWL,BAYES_00,MAILTO_TO_REMOVE,QUOTED_EMAIL_TEXT,REFERENCES
	version=2.55
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
Xref: archiver1.google.com comp.std.c++:20460

no_spam_remove_up_to_here_jwilliams@mfchelp.com ("Jeff Williams") wrote 
(abridged):
> Often when over-riding functions from a base class, I find it
> difficult to easily determine if I should be calling the base
> class version (in the case of a hook) or not calling the base
> class version (in the case of changing behavior).
> It occurred to me that it might be useful to provide an
> additional function type specifier that I shall refer to as
> no_base_call.

Why not declare the base class version private if it isn't supposed to
be called? Have a public forwarding function if necessary.

-- Dave Harris, Nottingham, UK

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



