Empty VS null array?
Adam D. Ruppe
destructionator at gmail.com
Thu Oct 17 16:27:33 PDT 2013
On Thursday, 17 October 2013 at 23:12:03 UTC, ProgrammingGhost
wrote:
> is null still treats [] as null.
blah, you're right. It will at least distinguish it from an empty
slice though (like arr[$..$]). I don't think there's any way to
tell [] from null except typeof(null) at all. At runtime they're
both the same: no contents, so null pointer and zero length.
More information about the Digitalmars-d
mailing list