microsoft C considered stupid
bright at dataio.UUCP
bright at dataio.UUCP
Tue Jun 24 03:33:07 AEST 1986
In article <1986Jun20.01:10:46.477 at utcs.uucp> flaps at utcs.uucp (Alan J Rosenthal) writes:
>I have just received MS C for the IBM PC/AT running MS-DOS.
>The manuals, besides being poorly and sometimes inaccurately written,
>encourage all sorts of stupid things.
>1. They have instituted a pre-processor conditional of the form
> #if defined(MANIFEST_CONSTANT). Furthermore, the manual notes that
> use of #ifdef is "discouraged" (though at least they support it).
> Here in net.lang.c several C revision proposals have been rejected on
> the grounds that they don't add enough to the language to merit the
> inconvenience of a change. This change from #ifdef adds absolutely
> nothing to the language!
Ah, but it does add an important capability! It is very convenient to do:
#if defined(abc) && defined(def) || defined(ghi)
code...
#endif
I need this capability as I write code that is ported to as many as 8
different C compilers and machines.
Of course, the feature already exists, because if an identifier is not
defined it is replaced with 0 in #if expressions, but I think that's
a worse kludge.
More information about the Comp.lang.c
mailing list