Can call static method with null reference

Jacob Carlborg doob at me.com
Sat Jun 22 13:20:04 PDT 2013


On 2013-06-22 19:11, monarch_dodra wrote:

> I don't see what's so terrible about it: If A can do it, I don't see
> what an instance of a couldn't?

The problem is that you cannot overload on "static". That is, have a two 
methods with the same name, one being declared "static". Usually it's 
possible to find a different name for one of the methods to avoid 
overloading. That's not always the case though, for example, opDispatch.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list