🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #900

typedef names in parameter lists

#900
From: Prescott K Turner
Date: Tue, 14 Nov 1989 13:39
14 lines
974 bytes
Where in the draft C standard does it resolve the meaning of
     typedef float X;
     int f (const X);
which means that f's parameter is a const float?  The standard syntax is
consistent with another interpretation, that f's parameter is a const int
named X.

I'm working on a parser, and need to know the general answer, not just
this one case.  For the life of me, I can't find it in the sections on 
function declarators, typedef names, scope, or type specifiers.
--
Prescott K. Turner, Jr.
13 Burning Tree Rd., Natick, MA 01760 USA    (508) 653-0357
UUCP: ...sun!cup.portal.com!pkturner    Internet: pkturner@cup.portal.com
Technical Details
Message-ID: <24050@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!portal!cup.portal.com!pkturner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!portal!cup.portal.com!pkturner
From: pkturner@cup.portal.com (Prescott K Turner)
Newsgroups: comp.std.c
Subject: typedef names in parameter lists
Message-ID: <24050@cup.portal.com>
Date: 14 Nov 89 13:39:15 GMT
Organization: The Portal System (TM)
Lines: 14