5 days ago
I am Developing an Operating System in D Language and when want to Develop my writeln("Zaheer"); function, I pass String "Zaheer" and when receive, it says Error
Error: function kernel.dwriteln (char* str) is not callable using argument types (string)
I Tried to cast but still stuck. In C and C++ I built this 2 times but D is giving this.
5 days ago
On 17/07/2017 2:47 PM, Zaheer Ahmed wrote:
> I am Developing an Operating System in D Language and when want to Develop my writeln("Zaheer"); function, I pass String "Zaheer" and when receive, it says Error
> Error: function kernel.dwriteln (char* str) is not callable using argument types (string)
> I Tried to cast but still stuck. In C and C++ I built this 2 times but D is giving this.

string == array

array/slice = length + pointer

[0] size_t length
[1] [char|wchar|dchar] ptr

char* pointer;
string str = pointer[0 .. length];