On Wednesday 25 February 2009 12:02:33 Duncan Mac-Vicar P. wrote:
Michael Andres wrote:
On Tuesday 24 February 2009 18:49:21 you wrote: Depends on the design of the base class.
This is usually the case if the base class defines all pure virtual:
virtual int pure() = 0;
I am not talking about pure virtuals here. MediaHandler::getFile is a normal virtual, providing a base implementation. All derived handlers override this functions. 99% of them just to call MediaHandler::getFile, the only ones that actually overrides it
Then you have to ask the author. Maybe it was pure at the beginning and lost it. Or the author saw the implementation of other pure methods and did it the same way without thinking about it. Or it was forgotten to make it pure.... BTW in code 11 it is pure: virtual void getFile( const Pathname & filename ) const = 0; -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org