Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Compile-time initialization (was Re: Is this bad programming?) Message-ID: <1990Aug12.045029.9783@zoo.toronto.edu> Organization: U of Toronto Zoology References: <1990Aug8.100614.1223@resam.dk> <17300@haddock.ima.isc.com> <2157@runxtsa.runx.oz.au> Date: Sun, 12 Aug 90 04:50:29 GMT In article <2157@runxtsa.runx.oz.au> brucee@runxtsa.runx.oz.au (Bruce Evans) writes: >What about allowing initialization by assignment? > > char errortext[3][40]; > ... > errortext[0] = "234567890123456789012345678901234567890"; The idea has merit, but *please* find a different syntax. It is already a royal pain to parse C declarations because you can't tell what's going on until the middle of the declaration. I like the labels inside an initializer list better. -- It is not possible to both understand | Henry Spencer at U of Toronto Zoology and appreciate Intel CPUs. -D.Wolfskill| henry@zoo.toronto.edu utzoo!henry