https://issues.dlang.org/show_bug.cgi?id=4733

--- Comment #44 from Paul Backus <[email protected]> ---
(In reply to Nick Treleaven from comment #43)
> Note that `if (arr !is null)` is equivalent to `if (arr)`. Those check both
> the .ptr and .length fields (i.e. `is null` means exactly the same as `is
> []`).

To be 100% explicit: both `if (arr !is null)` and `if (arr)` are equivalent to
`if (a.ptr || a.length)`.

--

Reply via email to