If printf is used instead of writeln, then there's something seriously
wrong with druntime in the first place. This is just ridiculous.

On Mon, May 14, 2012 at 9:38 PM, Alex Rønne Petersen <[email protected]>wrote:

> On 14-05-2012 15:21, Gor Gyolchanyan wrote:
>
>> I thing the zero-terminated literal shtick is pointless. Literals are
>> rarely passed to C functions, so we gotta use the std.utf.toUTFz  anyway.
>>
>> On Mon, May 14, 2012 at 5:03 PM, Christophe
>> <[email protected] 
>> <mailto:travert@phare.**normalesup.org<[email protected]>>>
>> wrote:
>>
>>    deadalnix , dans le message (digitalmars.D:167258), a écrit :
>>     > A good solution would be to set the pointer to 0 when the length
>>    is set
>>     > to 0.
>>
>>    String literal are zero-terminated. "" cannot point to 0x0,
>>    unless we drop this rule. Maybe we should...
>>
>>
>>
>>
>> --
>> Bye,
>> Gor Gyolchanyan.
>>
>
> This is very false. I invite you to read almost any module in druntime.
> You'll find that it makes heavy use of printf debugging.
>
> That being said, dropping the null-termination rule when passing strings
> to non-const(char)* parameters/variables/etc would be sane enough (I think).
>
> --
> - Alex
>



-- 
Bye,
Gor Gyolchanyan.

Reply via email to