September 10, 2014 [Issue 13453] New: Allow appending string literal to any width string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13453 Issue ID: 13453 Summary: Allow appending string literal to any width string Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: yebblies@gmail.com With issue 7942 soon to be fixed, this code will no longer compile (previously it generated wrong code). void main() { wstring x; x ~= "hello"; } The string literal can be converted to the correct width at compile time, and should probably be supported. -- |
Copyright © 1999-2021 by the D Language Foundation