microsoft C considered stupid

guy at sun.UUCP guy at sun.UUCP
Sat Jun 21 14:13:52 AEST 1986


> 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.

Microsoft didn't institute this.  John Reiser did when he was at Bell Labs.
This feature has been in UNIX since Version 7, and has been documented since
System V.  It is also in the ANSI C draft standard.

> This change from #ifdef adds absolutely nothing to the language!

Wrong.  You can't say

	#ifdef FOO || BAR

to include code if FOO or BAR is defined, but you can say

	#if defined(FOO) || defined(BAR)

This is useful, and has in fact been used in a number of programs.
-- 
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy at sun.com (or guy at sun.arpa)



More information about the Comp.lang.c mailing list