🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #705

Empty source file

#705
From: Norman Diamond
Date: Wed, 11 Oct 1989 08:02
15 lines
1241 bytes
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@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.
Technical Details
Message-ID: <10955@riks.csl.sony.co.jp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond
From: diamond@csl.sony.co.jp (Norman Diamond)
Newsgroups: comp.std.c
Subject: Empty source file
Message-ID: <10955@riks.csl.sony.co.jp>
Date: 11 Oct 89 08:02:22 GMT
Reply-To: diamond@ws.sony.junet (Norman Diamond)
Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan
Lines: 15