string to char array?
Kyoji Klyden via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 3 04:38:21 PDT 2015
On Wednesday, 3 June 2015 at 11:28:14 UTC, anonymous wrote:
> On Wednesday, 3 June 2015 at 11:23:09 UTC, Kyoji Klyden wrote:
>> Ooooh okay, I'm starting to get it. I think this last question
>> should clear it up for me: When a string is made, how is the
>> struct Slice handled? What does ptr get assigned?
>
> ptr is a pointer to the first char, in other words the address
> of the first char.
I think I get how it's all basically working now. I've realized
that my confusing is all coming from not understanding how D
handles arrays, so I'm going to go look into that for a while.
Thanks for the help!
More information about the Digitalmars-d-learn
mailing list