Ease of calling C code from D

bearophile bearophileHUGS at lycos.com
Tue Jan 28 12:26:45 PST 2014


Atila Neves:

> Another problem I had was the silly C code taking char* instead 
> of const char*. Passing in D strings was "fun".

I don't remember why std.string.toStringz returns a 
immutable(char)* instead of a char* if you give it a char[].

Bye,
bearophile


More information about the Digitalmars-d mailing list