clear AAs
Max Samukha
samukha at voliacable.com
Wed Apr 18 23:29:58 PDT 2007
On Wed, 18 Apr 2007 09:18:50 -0700, BCS <BCS at pathlink.com> wrote:
>Max Samukha wrote:
>> Daniel Keep wrote:
>>
>>>Bradley Smith wrote:
>>>
>>>>import std.stdio;
>>>>
>>>>void main() {
>>>>
>>>> bool[char[]] aa;
>>>> aa["abc"] = true;
>>>> aa["def"] = false;
>>>> writefln(aa);
>>>>
>>>> aa = aa.init;
>>>> writefln(aa);
>>>>}
>>>
>>>... that's so simple; why didn't I think of that before?!
>>>
>>>Thanks for that! :)
>>>
>>> -- Daniel
>>
>>
>> Or aa = null (aa.init == null)
>
>can you then fill it up again?
Yes
More information about the Digitalmars-d-learn
mailing list