(char* str) is not callable using argument types (string)
rikki cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 17 07:06:36 PDT 2017
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];
More information about the Digitalmars-d-learn
mailing list