Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: ANSI C idea: structure literals (and short constants) Message-ID: <1988Mar20.013435.5248@utzoo.uucp> Organization: U of Toronto Zoology References: <12244@brl-adm.ARPA>, <2768@mmintl.UUCP> Date: Sun, 20 Mar 88 01:34:35 GMT >I don't believe that K&R anywhere specify the semantics of casting structs; >perhaps X3J11 does. I am sure that there is a fair amount of (non-portable) >code out there which assumes that such casts are interpreted as "take as". I doubt it, given that most existing compilers refuse to cast structs at all. X3J11 says you can't cast structs (except to void). K&R doesn't mention the issue at all, since it dates back to a time when there were no struct values at all. -- Those who do not understand Unix are | Henry Spencer @ U of Toronto Zoology condemned to reinvent it, poorly. | {allegra,ihnp4,decvax,utai}!utzoo!henry