G
Gavin Deane
VJ said:Also every normal c++ coding standard will tell you to use NULL(or
whatever there is), instead of 0
<Response>
I must have only read abnormal coding guidelines then. One of the
abnormal sources was Stroustrup's C++ Programming Language (3rd
edition). There have been many others, including this newsgroup. I must
have missed the normal ones.
Use any more macros than really necessary?
Type three extra characters to end up with precisely the same meaning
as far as the complier is concerned?
Risk confusing human readers on the occasion I forget the guideline and
revert to using 0 (as I surely will at some point, and the compiler
will equally surely not spot my "mistake").
Not my cup of tea I'm afraid.
Style guidelines that are not checked automatically need more careful
thought than that.
<Alternative Response>
If you make sweeping generalisations or assertions that are not true,
the only likely outcome is damage to your own credibility.
Gavin Deane