[Issue 18420] New: string as an initializer should work in any place an immutable char array does

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 11 13:11:19 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18420

          Issue ID: 18420
           Summary: string as an initializer should work in any place an
                    immutable char array does
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: schveiguy at yahoo.com

e.g.:

alias IC = immutable char;
ubyte[3] x = [IC('a'), IC('b'), IC('c')]; // OK
ubyte[3] y = "abc"; // Error

--


More information about the Digitalmars-d-bugs mailing list