🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5697

"a();" not a valid external declaration in pANS C.

#5697
From: Jan Gray
Date: Sun, 05 Feb 1989 21:12
5 lines
623 bytes
pANS C accepts "int a();" and "a() {}" but not "a();", which is valid K&R C.
I am curious about the rationale behind this change.  Was it "nobody really
uses that construct, and banning it simplifies the grammar"?

Jan Gray  uunet!microsoft!jangr  Microsoft Corp., Redmond Wash.  206-882-8080
Technical Details
Message-ID: <46@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!microsoft!jangr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!uw-beaver!microsoft!jangr
From: jangr@microsoft.UUCP (Jan Gray)
Newsgroups: comp.std.c
Subject: "a();" not a valid external declaration in pANS C.
Message-ID: <46@microsoft.UUCP>
Date: 5 Feb 89 21:12:14 GMT
Organization: Microsoft Corp., Redmond WA
Lines: 5