digitalmars.D - How do you duplicate an AA?
- stonecobra (4/4) Aug 04 2004 I have an AA, and I cannot call aa.dup, as the compiler says:
- Russ Lewis (6/11) Aug 05 2004 dup would be nice, but you can also do this:
I have an AA, and I cannot call aa.dup, as the compiler says: No property 'dup' for 'char[][char[]]' How can I do it? Scott
Aug 04 2004
stonecobra wrote:I have an AA, and I cannot call aa.dup, as the compiler says: No property 'dup' for 'char[][char[]]' How can I do it?dup would be nice, but you can also do this: char[][char[]] a = <whatever>; char[][char[]] copy; foreach(char[] key, char[] value; a) copy[key] = value;
Aug 05 2004