The D Programming Language

Karl Heuer karl at haddock.ISC.COM
Wed Mar 2 10:59:03 AEST 1988


In article <7362 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>In article <1020 at maccs.UUCP> gordan at maccs.UUCP (gordan) writes:
>>... defaulting to int.  _Has_ this been changed in ANSI C?
>
>No, like other warts, since this is widely used in correctly-written
>(according to K&R rules) C code, and since it does not pose any true
>technical problems, it must continue to be tolerated.  Fix it in "D".

In a similar vein, using "int" (or the "implied int" you get by leaving out
the type) for a function which returns no value should disappear.

Hey Doug, couldn't this be deprecated on the same grounds as old-style
function declarations?  A new syntax ("void") has been standardized which does
the job better, and the old syntax makes it harder to diagnose certain bugs.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list