DMD 1.011 release -- prior code does not compile
Walter Bright
newshound1 at digitalmars.com
Wed Apr 11 13:03:00 PDT 2007
kris wrote:
> In a similar fashion, this kinda' thing used to work just fine:
>
> ---
> struct Foo
> {
> final char[] x;
> }
>
> static Foo foo = {"something"};
> ---
>
> "Error: too many initializers"
>
> How is one now supposed to declare struct contents that are immutable
> after being set to an initial value?
That looks like a compiler bug.
More information about the Digitalmars-d-announce
mailing list