AA within struct
dominik
aha at aha.com
Fri Feb 15 03:12:54 PST 2008
"Aarti_pl" <aarti at interia.pl> wrote in message
news:fp3rpc$rm5$1 at digitalmars.com...
> Struct initialization is different. Try this:
>
> public static DST[char[]] AA =
> [
> "Africa/Asmara"[]: {5, "bla"[]}
> ]
> ;
yeah I've tried that too:
Error: not an associative array initializer
I have also tried this:
align(1)
struct DST {
private int test;
private char[] secondtest;
public static DST[char[]] AA =
[
"Africa/Asmara": DST(5, "bla")
]
;
}
Error: non-constant expression ["Africa/Asmara":(DST(5,"bla"))]
More information about the Digitalmars-d-learn
mailing list