arrays: if(null == [ ])

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Tue May 15 03:09:36 PDT 2012


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> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120515/25633548/attachment.html>


More information about the Digitalmars-d mailing list