🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3851

Re: Parenthesized type name in parameter declaration

#3851
From: Tanmoy Bhattacharya
Date: Thu, 24 Aug 1995 19:55
38 lines
1758 bytes
In article <41iitl$m9m@news0.rain.rg.net>, Paul Long <plong@perf.com> writes: 
|> What is meant by this passage in the Sematics section of 6.5.4.3?
|> 
|> "In a parameter declaration, a single typedef name in parentheses is taken
to 
|> be an abstract declarator that specifies a function with a single
parameter, 
|> not as a redundant parentheses around the identifier for a declarator."
|> 
|> From a literal reading, it sounds like it is describing the following
|> situation, but I believe this is a syntax error, which precludes any
semantic 
|> interpretation.
|> 
|>    typedef int x;
|>    foo((x));
|> 
|> If this is not an example of what is being described, please provide one.

Refer TC1 for an update on this clause.

The following example might be useful:

typedef int x;
int(y);
int foo(int(x));
int foo(int y(x));
int bar(int x);

Cheers
Tanmoy
-- 
tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87544-0285,USA H:#3,802,9 St,NM87545
Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
<http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
Technical Details
Message-ID: <41ilel$kn1@newshost.lanl.gov>
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
References: <41iitl$m9m@news0.rain.rg.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
Newsgroups: comp.std.c
Subject: Re: Parenthesized type name in parameter declaration
Date: 24 Aug 1995 19:55:01 GMT
Organization: Los Alamos National Laboratory
Distribution: world
Message-ID: <41ilel$kn1@newshost.lanl.gov>
References: <41iitl$m9m@news0.rain.rg.net>
NNTP-Posting-Host: qcd.lanl.gov