Something about Chinese Disorder Code

Daniel Murphy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 1 19:22:15 PST 2015


On 25/11/2015 2:16 PM, Rikki Cattermole wrote:
> On 25/11/15 1:47 AM, Meta wrote:
>> I'm pretty sure you can just do:
>>
>> wstring text = "my string";
>>
>> Or
>>
>> auto text = "my string"w;
>
> The second one is correct yes.
> I'm just assuming that it isn't compiled into the executable.

Either is fine.  Non-suffixed string literals have a default type of 
string, but implicitly convert to wstring/dstring at compile time.


More information about the Digitalmars-d-learn mailing list