When does void make code less readable?

J. Shapiro jss at sjuvax.UUCP
Thu Feb 21 07:39:33 AEST 1985


[Pacman's revenge...]

	The real problem with the use of (void) is that too many current C
compilers don't support it, and don't know what the void cast should go to.
Many of the best of the microcomputer C compilers don't have it, and there
is an argument which runs: "C is small enough and simple enough to run on
micros, there is nothing intrinsically wrong with micros (NO FLAMES), and
backwards compatability is important."

	For all of my joking about a ^= b ^= a ^= b, the real reason not to add
things to a language is just this.  Why should I need to spend another $500
on a good compiler?  I am not that rich. (void) is therefore a THORN to
portability.  Even some UNIX lookalike compilers don't support it.

Jon Shapiro
Haverford College

UNIX is a trademark of big brother.



More information about the Comp.lang.c mailing list