dChar Error
Salih Dincer
salihdb at hotmail.com
Fri Dec 30 15:28:05 UTC 2022
On Friday, 30 December 2022 at 11:05:07 UTC, matheus wrote:
> Are you sure about that?
Thank you for your answer. You contributed to the project I was
working on. In this case, std.conv.to can be used for mutable
dchars, right? For example, is this solution the right approach?
```d
auto toDchar(S)(inout S str) {
import std.conv : to;
return str.to!(dchar[]);
}
void main() {
auto str3 = "ÜÇ ON "d;
auto str4 = "BİR İKİ BEŞ "d.dup;
auto str5 = "DÖRT ALTI YEDİ ".toDchar;
//str5.fun(5);
}
```
SDB at 79
More information about the Digitalmars-d-learn
mailing list