Compile-time initialization (was Re: Is this bad programming?)
Henry Spencer
henry at zoo.toronto.edu
Sun Aug 12 14:50:29 AEST 1990
In article <2157 at runxtsa.runx.oz.au> brucee at 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 at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list