arrays: if(null == [ ])

Timon Gehr timon.gehr at gmx.ch
Mon May 14 15:15:55 PDT 2012


On 05/14/2012 07:16 PM, Gor Gyolchanyan wrote:
> At least we could make an empty string a null array of characters for
> consistency. How many times did anyone use the feature of string
> literals being null-terminated?
>

It is a useful feature. There is no reason to break

printf("Hello, World!");


More information about the Digitalmars-d mailing list