clear AAs

BCS BCS at pathlink.com
Wed Apr 18 09:18:50 PDT 2007


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?


More information about the Digitalmars-d-learn mailing list