Some questions about strings

Denis noreply at noserver.lan
Mon Jun 22 05:12:57 UTC 2020


On Monday, 22 June 2020 at 04:32:32 UTC, Mike Parker wrote:
> 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

Right at the top and plain as day too... ;)

I appreciate the link to the source -- thanks!


More information about the Digitalmars-d-learn mailing list