Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mtuxo!mtune!codas!killer!chip From: chip@killer.UUCP Newsgroups: comp.lang.c Subject: Re: initialization of unions Message-ID: <1936@killer.UUCP> Date: Wed, 28-Oct-87 18:15:23 EST Article-I.D.: killer.1936 Posted: Wed Oct 28 18:15:23 1987 Date-Received: Sat, 31-Oct-87 18:36:42 EST References: <165600017@uiucdcsb> <4237@ccv.bbn.COM> Reply-To: chip@killer.UUCP (Chip Rosenthal) Organization: The Unix(tm) Connection BBS, Dallas, Tx Lines: 12 In article <4237@ccv.bbn.COM> kgregory@ccy.bbn.com (Keith D Gregory) writes: > ...unions are initialized > as if you were initializing their first element... I've never understood why this is the case. Is there some reason I'm overlooking why the compiler couldn't let you cast it to one of the following elements? -- Chip Rosenthal, Dallas Semiconductor, (214) 450-0400 This message courtesy of ``The UNIX Connection BBS'' in Dallas. Neither they nor my employer are responsible for my stupidity.