Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site cmu-cs-k.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!rochester!cmu-cs-pt!cmu-cs-k!tim From: tim@cmu-cs-k.ARPA (Tim Maroney) Newsgroups: net.lang.c Subject: Re: union initialization, another brick in the wall Message-ID: <29@cmu-cs-k.ARPA> Date: Thu, 8-Nov-84 14:45:16 EST Article-I.D.: cmu-cs-k.29 Posted: Thu Nov 8 14:45:16 1984 Date-Received: Sat, 10-Nov-84 03:51:34 EST References: <4591@utzoo.UUCP> Organization: Carnegie-Mellon University, CS/RI Lines: 18 In the interests of pluralism, here is another idea concerning union initialization. Allow assignment expressions at the external level. The RHS would have to be a compile-time constant, and the LHS an already declared lvalue. Thus, you would have: union { float x; int y; } foo; foo.x = 3; Just a thought.... -- Tim Maroney, Carnegie-Mellon University Computation Center ARPA: Tim.Maroney@CMU-CS-K uucp: Try sending through a gateway such as DECWRL, UCB-VAX, SEISMO, or HARVARD -- mailer conventions differ on syntax