On 19.12.2015 14:20, Marc Schütz wrote:
As this is going to be passed to a C function, it would need to be zero-terminated. `.dup` doesn't do this, he'd have to use `std.string.toStringz` instead. However, that function returns a `immutable(char)*`, which would have to be cast again :-(
Ouch, I totally missed that. Looks like we don't have a nice way to do this then?