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

           Summary: Feature request: cdup
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2014-04-03 02:39:36 PDT ---
Request for "cdup". Because some const types just can't be cast to either
mutable or immutable.

//----
struct S{int*p;}

void main()
{
    const(S)[] s;
    s.dup; //Nope
    s.idup; //Nope
    s.cdup; //I'd like this.
}
//----

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

Reply via email to