Empty source file

Norman Diamond diamond at csl.sony.co.jp
Wed Oct 11 18:02:22 AEST 1989


The grammar given in the standard does not permit an empty source
file.  Strangely enough, a preprocessor source file may be empty,
but since it cannot generate a non-empty real source file, error
detection is only delayed.

However, in 2.1.1.2, phase 2, "A source file that is not empty shall
end in a new-line character, ...."  Why the condition "that is not
empty"?  Did the committee intend to allow an empty source file, but
forgot that somewhere along the way?

-- 
Norman Diamond, Sony Corp. (diamond%ws.sony.junet at uunet.uu.net seems to work)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.std.c mailing list