char[] == null

Spacen Jasset via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 18 12:57:06 PST 2015


Should this be allowed? What is it's purpose? It could compare 
two arrays, but surely not that each element of type char is null?

char[] buffer;
if (buffer == null) {}


More information about the Digitalmars-d-learn mailing list