Mail Archives: djgpp/1998/02/07/22:30:46
On Sat, 07 Feb 1998 13:56:41 -0500, Pete Becker <petebecker AT acm DOT org> wrote:
>James Hu wrote:
>>
>> This problem could have been diagnosed if you had #include'd kbd.h into
>> kbd.c.
>
>Well, no. It's perfectly legal to have an extern declaration followed by
>a static definition. So the compiler is not required to say anything if
>you do this.
As Lawrence has pointed out, the behavior is undefined. But, I'll amend
my statement to "might have been diagnosed".
--
James C. Hu <jxh AT cs DOT wustl DOT edu> Computer Science Doctoral Student
http://www.cs.wustl.edu/~jxh/ Washington University in Saint Louis
>>>>>>>>>>>>> I use *SpamBeGone* <URL:http://www.internz.com/SpamBeGone/>
- Raw text -