https://d.puremagic.com/issues/show_bug.cgi?id=12189

           Summary: "out" parameters should be allowed to modify immutable
                    values in ctors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-02-18 
03:56:13 EET ---
void initialize(out string[] v) { v = ["Hi!"]; }

immutable string[] s;

shared static this()
{
    s = ["Hi!"];   // OK
    initialize(s); // NG
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to