Yes, I know.  I am using D1, and I love it. ;-)

Greetings.

I know that I can declare an array with data, ie.

string[] d = ["1","2","three","4];

and this will be done at compiled time. I want to do the same with an associative array., ie.

int[string] MyDigits = ["0" = 0, "1" = 1, "2" = 2];

That does not work.  I also tried,

int[string] MyDigits = ["0" : 0, "1" : 1, "2" : 2];

Nope, it does not work either.  Any thoughts?  thanks.

josé

Reply via email to