Idea: Introduce zero-terminated string specifier

Vladimir Panteleev vladimir at thecybershadow.net
Mon Oct 1 13:33:44 PDT 2012


On Monday, 1 October 2012 at 12:12:52 UTC, deadalnix wrote:
> Le 01/10/2012 13:29, Vladimir Panteleev a écrit :
>> On Monday, 1 October 2012 at 10:56:36 UTC, deadalnix wrote:
>>> How does to!string know that the string is 0 terminated ?
>>
>> By convention (it doesn't).
>
> It is unsafe as hell oO

Forcing the programmer to put strlen calls everywhere in his code 
is not any safer.


More information about the Digitalmars-d mailing list