(unsigned) cast in external initializations

Henry Spencer henry at utzoo.UUCP
Sat Sep 15 07:27:14 AEST 1984


> Actually, the reference manual (section 15) prohibits ALL explicit casts
> within constant expressions, so that the pcc is technically in error
> permitting even (int) casts.

Folks will probably be glad to know that this omission has been remedied
in the current draft of the ANSI C standard.  Dennis indicated a while
ago that the absence of casts in the list of constant-expression operators
was basically an oversight.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list