2012/2/28 Pedro Lacerda pslace...@gmail.com
So are a newly allocated array and a null one just the same thing?
int[] a = [], b = null;
assert(a == b);
assert(a.length == b.length);
assert(a.ptr == a.ptr);
Hi all,
Sorry if this is a stupid question - I'm new to D but I've
2012/2/28 Jesse Phillips jessekphillip...@gmail.com
string is an array, alias immutable(char)[], so the same rules apply.
I know about string being an alias, hence the question. This means that I
can doif (someString.length) { ... }without worrying about the null
case (?). That's