When does void make code less readable?

g-frank at gumby.UUCP g-frank at gumby.UUCP
Sat Feb 23 03:11:39 AEST 1985


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

   Try 
	typedef void unsigned ;

   This is what Whitesmith's did all through the Idris system for the
68000, and it seems to work.  Obviously, if your compiler (and lint)
don't recognize it, it won't buy you any immediate benefit, but if you
go to port your code to an implementation that does use it, your code
will be "ready for prime time," as it were.


-- 
      Dan Frank

	  Q: What's the difference between an Apple MacIntosh
	     and an Etch-A-Sketch?

	  A: You don't have to shake the Mac to clear the screen.



More information about the Comp.lang.c mailing list