--- Comment #7 from 2012-06-03 07:54:14 PDT ---
(In reply to comment #6)
> Slightly refining the overloading rules as proposed in issue 3345 would 
> already
> solve the problem.

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

>; // ok

This seems too dangerous to allow (by default).

Do static and non-static methods form one overload set?

struct S {
 static auto opCall(int) {...}
 auto opCall(string) {...}

Oh, and i just noticed the suggestion in this report that static fields should
not be accessible via an instance - no, that would a break a lot of code, for
almost no gain (you can already place the static data in another struct and
that one in an (anonymous) union)

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

Reply via email to