Some questions about strings

Mike Parker aldacron at gmail.com
Mon Jun 22 04:32:32 UTC 2020


On Monday, 22 June 2020 at 04:08:10 UTC, Denis wrote:
> On Monday, 22 June 2020 at 03:31:17 UTC, Ali Çehreli wrote:
> :
>> string is char[]
>> wstring is wchar[]
>> dstring is dchar[]
>
> Got it now. This is the critical piece I missed: I understand 
> the relations between the char types and the UTF encodings 
> (thanks to your book). But I mistakenly thought that the string 
> types were different.
>

They're aliases in object.d:

https://github.com/dlang/druntime/blob/master/src/object.d#L35


More information about the Digitalmars-d-learn mailing list