Newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!newstand.syr.edu!news.maxwell.syr.edu!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!uunet!in1.uu.net!uucp1.uu.net!alexandria.organon.com!alexandria!jsa
From: jsa@alexandria (Jon S Anthony)
Subject: Re: What is wrong with OO ?
In-Reply-To: FEYNMAN@acs.tamu.edu's message of 12 Feb 1997 04:52:26 GMT
Message-ID: <JSA.97Feb12200658@alexandria>
Sender: news@organon.com (news)
Organization: Organon Motives, Inc.
References: <5dopri$dei@news4.digex.net> <JSA.97Feb11200125@alexandria>
	<slrn5g1u19.g3mged.FEYNMAN@VMS1.TAMU.EDU>
Date: Thu, 13 Feb 1997 01:06:58 GMT
Lines: 41
Xref: glinda.oz.cs.cmu.edu comp.lang.c++:247571 comp.lang.smalltalk:51516 comp.lang.eiffel:18404 comp.lang.ada:57518 comp.object:61083 comp.software-eng:53725

In article <slrn5g1u19.g3mged.FEYNMAN@VMS1.TAMU.EDU> FEYNMAN@acs.tamu.edu (Hamilton, Robert Bryan       ) writes:

> On Wed, 12 Feb 1997 01:01:25 GMT, Jon S Anthony <jsa@alexandria> wrote:
> >This seems really confused.  How are the _inherited_ classes
> >overriding a _parent's_ function?  I suppose you meant subclasses.
> >Anyway, you got it backwards.  The point is that if you don't make the
> >things virtual, you can't do the overrides (and other attendant
> >stuff).  
> 
> ??? You can override any method in C++, virtual or no.
> The difference is that virtual function _must_ be overridden if
> you plan to use it.  

No, we're not talking "override" as in "overloading" or "hiding".  The
context _is_ the case of overriding dispatchable methods.


> The _real_ point is that you have access to a virtual method even if

Actually, given the context, this is irrelevant.


> >So, there is this problem of either making everything
> >virtual, and possibly providing misleading, inappropriate or possibly
> >simply inefficient aspects, or not and then risking the mentioned
> >problems.
> 
> This is no problem unless one makes it one through bad practice.
> Just don't use virtual functions _unless_ doing so enhances the clarity
> of the program!  Otherwise there's no point to it.

You've completely missed the point of the whole discussion...

/Jon
-- 
Jon Anthony
Organon Motives, Inc.
Belmont, MA 02178
617.484.3383
jsa@organon.com

