Re: string to char conv

2018-08-13 Thread zeus via Digitalmars-d-learn
On Tuesday, 14 August 2018 at 00:24:53 UTC, Jonathan M Davis wrote: On Monday, August 13, 2018 6:06:22 PM MDT zeus via Digitalmars-d-learn wrote: [...] Why are you casting the string to a char*? That's just going to make writeln print out the pointer value. If you want to print ou

string to char conv

2018-08-13 Thread zeus via Digitalmars-d-learn
i have the following code in d and i get as result 4D77EB, also i have the following code in c++ wich give me as results 0xABCDEF123abcdef12345678909832190 how i can get in d 0xABCDEF123abcdef12345678909832190 instead of 4D77EB // D void test(string test){ cha