Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decwrl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!dec-rhea!dec-ultra!herbison From: herbison@ultra.DEC (B.J.) Newsgroups: net.lang.c Subject: Re: initializing unions Message-ID: <4179@decwrl.UUCP> Date: Fri, 9-Nov-84 12:47:44 EST Article-I.D.: decwrl.4179 Posted: Fri Nov 9 12:47:44 1984 Date-Received: Sat, 10-Nov-84 10:13:27 EST Sender: daemon@decwrl.UUCP Organization: DEC Engineering Network Lines: 16 > What is wrong with > > union foo thing.member = {...}; > > ? It is clear and unambiguous. This works fine if the union is the top level. It falls apart if there is a union inside a struct or a union or if there are several unions in the object. There may be a way to get around this problem, but I can not think of any clean way. B.J. UUCP: {decvax,allegra,ucbvax}!decwrl!rhea!ultra!herbison ARPA: decwrl!rhea!ultra!herbison@{Berleley,SU-Shasta}