type cast in initializer

Chris Torek chris at umcp-cs.UUCP
Fri Jan 31 04:50:36 AEST 1986


In article <302 at hsi.UUCP> stevens at hsi.UUCP (Richard Stevens) writes:

> I've found the two lines
>	int	x = 0;
>	char	*ptr = (char *) &x;
> acceptable to every C compiler I've used, until running into the
> Whitesmith's C compiler.  They refuse to accept the type coercion
> "(char *)" on the second initialization. ...
>
> I talked to Whitesmiths about this and they are firm that their
> interpretation of the "standard" is that a type coercion following
> the equals sign is not allowed and they don't plan to change their
> compiler.

Whitesmiths has never been one to do reasonable things with their
compiler.  Their interpretation is bogus.  How a company can be
so simultaneously good and bad at what they do is just amazing.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.lang.c mailing list