When does void make code less readable?
Norman Diamond
ndiamond at watdaisy.UUCP
Tue Feb 19 03:56:42 AEST 1985
> I do support the use of lint, but I don't like (void). It just clashes
> with the language's style, to my mind. After all, we can write:
> a = ++b; or: ++b;
> but I don't want to write the latter as: (void) ++b;
> Mark Brader
Don't forget that you would also need: (void) a = ++b;
because the = operator returns its value too!
(Except on one machine I used, where a[1] = a[2] = 1.0; worked fine but
a[2*i+1] = a[2*i+2] = 1.0; left a[2*i+1] unchanged.)
--
Norman Diamond
UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond
CSNET: ndiamond%watdaisy at waterloo.csnet
ARPA: ndiamond%watdaisy%waterloo.csnet at csnet-relay.arpa
"Opinions are those of the keyboard, and do not reflect on me or higher-ups."
More information about the Comp.lang.c
mailing list