TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ANDERS WEGGE JAKOBSEN
from: DARIN MCBRIDE
date: 1997-04-18 23:00:00
subject: Rating of C++

 AWJ>  Where exactly are one supposed to use dynamic_cast?
 PP> #define abstract = 0
 PP> So you just do that:
 PP> virtual void fn() abstract
 AWJ>  Personally, I think this way is a kludge which should 
 AWJ> never have been legal. The same effect is much cleaner 
 AWJ> obtained by declaring the constructor in the 
 AWJ> protected: section of the class.
It's not quite the same effect... if I _need_ you to write func's A, B, and 
C, I can with the abstract member functions.  I can't do the same thing 
withprotected constructors.  Your method would necessitate a default 
behaviour on functions where they may not be implementable.  The famous 
"draw()" function of Shape comes to mind.  I don't WANT a default for it!
--- Maximus/2 3.01
---------------
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.