From 1042645230811298900 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,ccbfcafab96cf493 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2001-11-29 10:51:01 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: Pete Becker Newsgroups: comp.std.c++ Subject: Re: Proposol to increase robustness of programs Date: Thu, 29 Nov 2001 18:50:46 GMT Organization: Dinkumware, Ltd Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: <3C067F3F.B37FEDDD@acm.org> References: <3BFE97B3.91430FB1@wanadoo.fr> <3C058126.36357A00@acm.org> X-Trace: mail2news.demon.co.uk 1007059851 mail2news:22013 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:32:04 GMT X-Accept-Language: en Lines: 34 Xref: archiver1.google.com comp.std.c++:8372 Bill Wade wrote: > > "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. > > Please show me how to write the test for this template: > > template class foo: T, U > { > public: > override int foo(){ return 7; } > }; > It's not possible to write tests in the absence of specifications. What is this (invalid) code supposed to do, and what are the constraints on T and U? -- 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 ]