Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/23/84; site ucbcad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ucbvax!ucbcad!faustus From: faustus@ucbcad.UUCP (Wayne A. Christopher) Newsgroups: net.lang.c Subject: Re: Re: Structure question (problem) Message-ID: <10@ucbcad.UUCP> Date: Tue, 28-May-85 18:11:45 EDT Article-I.D.: ucbcad.10 Posted: Tue May 28 18:11:45 1985 Date-Received: Thu, 30-May-85 20:32:32 EDT References: <185@vger.UUCP> <3090004@csd2.UUCP> Organization: UC Berkeley CAD Group, Berkeley, CA Lines: 21 > its an implementation nightmare to have to init structures/arrays/unions That is another thing that I would like to see in standard C -- initialization of unions. You can't do it now, presumably because there are problems with deciding which element you want to assign it to (although I can't really see where the problems would come in...). If you write something like union foo { int a; char *b; long c; } bar[] = { { 57 } , { (long) 76365 } , { "Hey, here we are" } } ; to initialize several unions, the compiler shouldn't have any trouble sseing what you mean, right? Wayne