[Issue 13453] New: Allow appending string literal to any width string

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 10 04:05:11 PDT 2014


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 at puremagic.com
          Reporter: yebblies at 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.

--


More information about the Digitalmars-d-bugs mailing list