July 17, 2017 (char* str) is not callable using argument types (string) | ||||
---|---|---|---|---|
| ||||
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. |
July 17, 2017 Re: (char* str) is not callable using argument types (string) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zaheer Ahmed | 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];
|
Copyright © 1999-2021 by the D Language Foundation