static arguments
Chris Torek
chris at umcp-cs.UUCP
Sat May 31 20:01:26 AEST 1986
In article <170 at njitcccc.UUCP> ron at njitcccc.UUCP (Ron DeBlock) writes:
>[Someone] accidently declared the arguments to his function as
>static [...]. I realize that it really makes no sense to do that,
>but the compiler did not flag the "error". [...] The question is,
>are static arguments legal even though they make no sense?
No.
>If not, why doesn't the compiler flag the problem?
It is buggy. The 4.3BSD C compiler, whatever its faults, gets this
one right: it complains about an `illegal class'.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1516)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at mimsy.umd.edu
More information about the Comp.lang.c
mailing list