What about putting array.empty in object.d?

Daniel Murphy yebblies at nospamgmail.com
Tue Mar 20 21:54:51 PDT 2012


FWIW, I would rather see `if (array)` translated to `if (array.length)` and 
this become the recomended way to check if an array is empty.  Wouldn't that 
remove the dependency on std.array for most of the cases? 




More information about the Digitalmars-d mailing list