Empty arrays are considered to be false
commit1d00714b6c769383c3f18311bfb11bdd74056f69
authorThomas Leonard <talex5@gmail.com>
Fri, 3 Oct 2008 21:19:32 +0000 (3 22:19 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 3 Oct 2008 21:19:32 +0000 (3 22:19 +0100)
tree548835b9ef5ee27ac98cb310ab6d64e1df91009d
parent7cae56576a5e64e0c1143485140d8faccc1a2a6e
Empty arrays are considered to be false

Given:
char[] a

In D, these are the same:

if (a)
if (a.ptr | a.length)

In Delight:

if a:
if a.length:

Note: this change affects D code too, which might be a problem.
d-codegen.cc