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


wfunct...@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wfunct...@hotmail.com


--- Comment #5 from wfunct...@hotmail.com 2011-09-26 10:38:11 PDT ---
An instance-level opCall should not disable the regular constructor.

Test case:

struct Adder {
    int v;
    auto opCall(int x) { return x + v; }
}

auto adder(int v) {
    return Adder(v);  // How do I call the constructor??
}

int main() {
    auto a = adder(5);
}

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

Reply via email to