scope of actual parameters
David Keppel
pardo at june.cs.washington.edu
Mon Aug 7 07:22:26 AEST 1989
My *impression* is that actual parameter names are local to the
function. My dpANS-compliant compiler (gcc version 1.34) complains on
the following program:
typedef int foo;
m (foo){}
foo.c: parameter name omitted
If I declare the parameter type, then I get a similar complaint.
typedef int foo;
m (foo) int foo; {}
foo.c: parm types given both in parmlist and separately
foo.c: parameter name omitted
Is this misbehavior of my compiler, or is this compliant behavior?
Please e-mail, I will summarize.
;-D on ( A four-poster computer ) Pardo
--
pardo at cs.washington.edu
{rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo
More information about the Comp.std.c
mailing list