Size_t existence
–>
Why does Think C use this custom pragma to do the job, when a more useful
alternative exists?
<–
I disagree that the THINK C #pragma once (I presume that's what you mean) is
less useful. Indeed, it helps ensure that you don't accidentally include a
file more than once, thereby redefining stuff all over creation. It's
automatic, too, unlike the more manual methods.
FWIW, #pragma once is the same as #define _H_includefile, which is the same as
the old #ifndef _H_includefile/#define _H_includefile/etc/#endif. You can even
check for the existence of the preprocessor symbol _H_includefile.
FWIW #2, Microsoft C (nit-pick: the product name isn't "Microsoft," even though
I'm sure those arrogant b**t**ds enjoy having their name used as "the
standard") does several things in a non-standard way, including merging the
preprocessor symbol table with the compiler symbol table. This means you can
#ifdef on a typedef name, for example. It's not necessarily AGAINST the
standard, I suppose, but it's NOT something that's safe to depend upon.
Joe