What    |Removed                     |Added
                 CC|                            |

--- Comment #6 from 2012-06-03 06:51:42 PDT ---
(In reply to comment #4)
> It hinders overloading. For so long I wanted to be able to have both static 
> and
> non-static opDispatch and opCall and couldn't because of this. This behavior 
> is
> not doing any good anyway.

This issue is not closely related to overloading.
Slightly refining the overloading rules as proposed in issue 3345 would already
solve the problem.

struct S{
    static void foo(){...}
    void foo(){...}

struct T{
    static void foo(){...}
    void bar(){...}

void main(){
    S s; T t;; // calls the static version; // calls the instance version; // ok; // ok
    // // error; // ok

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to