www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - (char* str) is not callable using argument types (string)

reply Zaheer Ahmed <zaheercena gmail.com> writes:
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.
Jul 17
parent rikki cattermole <rikki cattermole.co.nz> writes:
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];
Jul 17