Empty VS null array?

Adam D. Ruppe destructionator at gmail.com
Thu Oct 17 16:00:11 PDT 2013


On Thursday, 17 October 2013 at 22:50:22 UTC, ProgrammingGhost 
wrote:
> How do I find out if null was passed in?

try if(v is null) { use default }

if all you care about is if there's contents, I like to use 
if(v.length) {}


More information about the Digitalmars-d mailing list