arrays: if(null == [ ])
Alex Rønne Petersen
xtzgzorex at gmail.com
Tue May 15 05:00:39 PDT 2012
On 15-05-2012 12:09, Gor Gyolchanyan wrote:
> There's not reason to use printf! This is ridiculous! We haev a
> type-safe writef, which does exactly that and does it better.
> Besides, wrapping the literal into a toUTFz is not too difficult!
>
> On Tue, May 15, 2012 at 2:15 AM, Timon Gehr <timon.gehr at gmx.ch
> <mailto:timon.gehr at gmx.ch>> wrote:
>
> 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!");
>
>
>
>
> --
> Bye,
> Gor Gyolchanyan.
Yes, because using a Phobos function in druntime is perfectly possible!
Totally!
--
- Alex
More information about the Digitalmars-d
mailing list