Can call static method with null reference

H. S. Teoh hsteoh at quickfur.ath.cx
Sat Jun 22 09:42:56 PDT 2013


On Sat, Jun 22, 2013 at 06:34:25PM +0200, Namespace wrote:
> >but that's a problem caused by the fact that static functions can be
> >called via an instance, and fixing that would mean making it illegal
> >to call static functions on instances (which I would love to have
> >happen but don't expect to ever happen).
> >
> >- Jonathan M Davis
> 
> What was the reason for this terrible design decision?

I've asked about that, but never got a real answer. I'm still hoping
people would change their mind and reverse this bad decision. Conflating
static members with non-static members is just a really bad idea.


T

-- 
"640K ought to be enough" -- Bill G., 1984. "The Internet is not a
primary goal for PC usage" -- Bill G., 1995. "Linux has no impact on
Microsoft's strategy" -- Bill G., 1999.


More information about the Digitalmars-d-learn mailing list