C oddity -- language and/or compiler - (nf)
    utzoo!decvax!cca!ima!johnl 
    utzoo!decvax!cca!ima!johnl
       
    Fri Jan 21 03:21:31 AEST 1983
    
    
  
#R:rabbit:-106700:ima:15900001:000:414
ima!johnl    Jan 20 11:03:00 1983
What we have here is perfectly legal C.
	double	a;	/* Note the semi-colon! */
		b,
		c,
		d;
In external declarations, all of the specifiers are optional so that
	foo;
defines foo to be, by default, "extern int foo;".  I agree it's silly and
perhaps should be illegal (or at least provoke a complaint from lint) but
it's legit now.
John Levine, decvax!yale-co!jrl, ucbvax!cbosgd!ima!johnl, research!ima!johnl
    
    
More information about the Comp.lang.c
mailing list