[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ Blues.
On Tue, 21 Apr 1998 stark@easynet.fr wrote:
> This stupid scope lookup is part of the C++ spec. There's nothing you
> can do against (short of mailing bjarne stroustrup about it :-) ).
>
> There may be a rationale behind it (which I never found), but, well,
> you have to live with that.
There is; what if it DID call the base class function?
There wouldn't be an easy way to let it NOT call the base
class one... Except implementing it in the subclass, which
isn't appropriate, considering you didn't want that kind
of function anyway.
If you subclass something, and then "overwrite" one of the
functions, you don't want the original function to be called,
now do you?
What blabbering, I didn't understand even my own message.
Maybe an example would be in order. But I can't make up one.
But I think it is consistent, and rational.