string[int[][]] ??

dcoder dcoder at devnull.com
Thu Jul 22 13:50:45 PDT 2010


Hello.  I want to use associative arrays, but have a 2-d int array as my
index.  so something like:

string[int[][]] chessboard;

chessboard[[0,0]] = "Rook";
chessboard[[0,1]] = "Knight";

Is this possible?  I can declare chessboard without any compiler complaints,
but I haven't figured out how to assign anything to it.

Any help would be appreciated.

thanks!

dcoder


More information about the Digitalmars-d-learn mailing list