Overloading static methods

Daniel Murphy yebblies at nospamgmail.com
Mon Aug 29 07:59:22 PDT 2011


"Steven Schveighoffer" <schveiguy at yahoo.com> wrote in message 
news:op.v0zckubyeav7ka at localhost.localdomain...
>
> My opinion is that static methods should *not* be callable from an 
> instance, you should need typeof(instance).staticMethod.  The current 
> allowance is misleading.
>
> This should solve some of the issues, but of course, you'd need to allow 
> overloading of the method name in static and non-static forms.
>
> -Steve

I like this idea.  Is there a bugzilla entry for it?
With this disallowing overloading static vs non-static would be a pointless 
limitation. 




More information about the Digitalmars-d mailing list