char[] == null

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 18 13:02:58 PST 2015


On Wednesday, 18 November 2015 at 20:57:08 UTC, Spacen Jasset 
wrote:
> 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) {}

slices aren't arrays
http://dlang.org/d-array-article.html


More information about the Digitalmars-d-learn mailing list