GC pathological case behaviour

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 28 13:22:57 PDT 2016


On 6/28/16 3:53 PM, Ola Fosheim Grøstad wrote:
> On Tuesday, 28 June 2016 at 19:03:14 UTC, John Colvin wrote:
>>                 char[2] s = '\0';
>>                 s[0] = cast(char)msg;
>>                 puts(s.ptr);    // remove this => no memory leak
>
> But wait, is the string zero terminated?
>

I have to laugh at this quoted post :)

-Steve


More information about the Digitalmars-d mailing list