Re: The case insensitive #include statement horror...



Bo Persson wrote:

And what do you think the average Windows programmer does to the message

"warning: bits.hpp not found, bits.HPP used instead" ?

Just so that some 'nix guy will not get "bits.hpp not found" ?

Who has a problem? :-)

All our programmers. And thats because we do not fight "My OS is better than
yours"-Wars. We need all our code to compile on all platforms.

I really do not care, what the average Windows programmer thinks about:

"ERROR: include file 'wRONGsPELLING.h' not found"

(because this is what it's going to be. No warning, because it's an error,
if the code does not compile on each platform). In an environment, where
code must compile on all platforms and where the coding style says that
correct case is required, this is an error, as well it is an error if
someone uses platform specific code, that does not compile on the others.
No matter if this is Unix-, MacOSX or Windows-specific. If it does not
perfectly compile and work on all platforms, it is an error.

Regards
Stephan

.



Relevant Pages