August 05, 2004 How do you duplicate an AA? | ||||
---|---|---|---|---|
| ||||
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 |
August 05, 2004 Re: How do you duplicate an AA? | ||||
---|---|---|---|---|
| ||||
Posted in reply to stonecobra | 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;
|
Copyright © 1999-2021 by the D Language Foundation