http://d.puremagic.com/issues/show_bug.cgi?id=8288

           Summary: immutable(char)** is not convertable to const(char)**
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: ad...@dav1d.de


--- Comment #0 from David <ad...@dav1d.de> 2012-06-23 04:00:05 PDT ---
This Code:

void foo(const(char)** arg) {}
void main() {
    string yay = "fun";
    auto yay_data = yay.ptr;

    foo(&yay_data);
}

Produces this Error:

Error: function compileme406.foo (const(char)** arg) is not callable using
argument types (immutable(char)**)
Error: cannot implicitly convert expression (& yay_data) of type
immutable(char)** to const(char)**

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

Reply via email to