Quoting Pierre Phaneuf to Jerry Coffin, 16 Apr 97
about Rating of C++:
JC>> Assuming your compiler works correctly, you get an error message. The
JC>> syntax in the draft standard makes it clear that if you have an equal
JC>> sign there, only a zero can follow it. Anything else is an "Ill
JC>> formed program".
PP> This is crazy. Like those so-called "keywords" for casting... Since when
PP> am I supposed to see "dynamic_cast" and recognise this as a KEYWORD for
PP> chrissake??? Looks like a damn Pascallian variable name! ;-)) One of
PP> the suggested "fix" for the "= 0" is to "add" a keyword like this:
Where exactly are one supposed to use dynamic_cast?
PP> #define abstract = 0
PP> So you just do that:
PP> virtual void fn() abstract
Personally, I think this way is a kludge which should never have been legal.
The same effect is much cleaner obtained by declaring the constructor in the
protected: section of the class.
MVH,
Anders Wegge Jakobsen
--- Mail Manager 1.22x/n #1096
2:238/28.0)
---------------
* Origin: Sirius Cybernetics * V32.ter * HST16k8 * V.34+ * FAX *
|