On 4/26/11, Timon Gehr <timon.gehr at gmx.ch> wrote: >> Isn't it dangerous to pass a D string and let the C code overwrite the >> string, regardless of char* vs .ptr field? > > There is a possibility for buffer overflow. > No, I mean the C function will overwrite an immutable string.