How make wsatring or dstring default for string and literals?
Adam D. Ruppe
destructionator at gmail.com
Mon Feb 24 21:33:25 UTC 2020
On Monday, 24 February 2020 at 21:25:50 UTC, Marcone wrote:
> foreach(i; "Canção")
> Prints:
Try
foreach(dchar i; "Canção") // note the added dchar
to see a different presentation of the very same data.
If you take the strings apart byte by byte that will look
different, but they all represent the same characters, and
foreach can help decode that if you ask it to.
More information about the Digitalmars-d-learn
mailing list