On Mon, 25 Apr 2011 12:55:38 -0400, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote: > Isn't it dangerous to pass a D string and let the C code overwrite the > string, regardless of char* vs .ptr field? Yes. Using sprintf is dangerous regardless of what language you are using. It is advised to use D equivalents. -Steve