Re: string to char conv

2018-08-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, August 13, 2018 6:42:02 PM MDT zeus via Digitalmars-d-learn wrote: > 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

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 out the

Re: string to char conv

2018-08-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, August 13, 2018 6:24:53 PM MDT Jonathan M Davis via Digitalmars- d-learn wrote: > On Monday, August 13, 2018 6:06:22 PM MDT zeus via Digitalmars-d-learn > > wrote: > > 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

Re: string to char conv

2018-08-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, August 13, 2018 6:06:22 PM MDT zeus via Digitalmars-d-learn wrote: > 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 >