Yet more PCC bugs (4.2BSD)
Donn Seeley
donn at utah-cs.UUCP
Thu Aug 30 09:45:54 AEST 1984
Even more fun... The following program shows how to declare arguments
in a unique way:
------------------------------------------------------------------------
double x( a ), y( b ), z( c );
double d()
double a, b, c;
{
return a + b + c;
}
------------------------------------------------------------------------
A similarly obscene program produces the plaintive warning 'bad arg
temp':
------------------------------------------------------------------------
double x(), y(), z();
double d()
double x, y, z;
{
return x + y + z;
}
------------------------------------------------------------------------
PCC has almost as many bugs as the C-shell,
Donn Seeley University of Utah CS Dept donn at utah-cs.arpa
40 46' 6"N 111 50' 34"W (801) 581-5668 decvax!utah-cs!donn
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list