Just a friendly reminder about using arrays in boolean conditions
Walter Bright
newshound2 at digitalmars.com
Mon Nov 25 08:57:36 UTC 2024
I neglected to mention that:
```
if (a)
```
is equivalent to:
```
if (a.ptr && a.length)
```
More information about the Digitalmars-d
mailing list