Associative Array, key and value as type of string or char[]
timewulf
timewulf at network-application.de
Sat Feb 2 06:51:24 PST 2013
Hi all,
in the moment I'm running against a wall:
I want to put some strings together into an ass. array:
For example a command with it's description like the following.
char[char[]] ch_Description = [ 'kill' : 'kills a process',
'pause' : 'pauses a process' ]
I tried with all combinations of char[char[]] over string[char[]],
char[string] to string[string] with depending quotations 'abc' to "abc".
My idea is just to print out the combinations to console. I'm not even
.sure, if it's a good idea to do so, but what makes me cry is, after all
trying, is that I can't find a solution.
The compiler messages go from "no implicit conversion" to "cast(char) of
string is deprecated" and others.
I read much about that key-values have to be immutable and so on and I
can accept the reasons, but I can't believe, there's no possible
solution for my underlaying idea.
Any ideas?
timewulf
More information about the Digitalmars-d-learn
mailing list