void[0][string] hash = [ "text" : [] ] gives empty array.

Cooler kulkin at hotbox.ru
Thu Feb 6 13:37:32 PST 2014


The code compiled and runs successfully:
   void[0][string] hash = [ "text" : [] ];
   writeln(hash);
   assert(hash.length == 0);

Output result is "[]".

Is that a bug?


More information about the Digitalmars-d mailing list