static and instance opDispatch

Steven Schveighoffer schveiguy at gmail.com
Mon Nov 19 20:12:10 UTC 2018


On 11/19/18 2:51 PM, John Chapman wrote:
> Is there any reason both static and instance opDispatch can't coexit in 
> the same enclosing type? The compiler seems to be able to detect if it's 
> the static version or not so I'm assuming they wouldn't clash?

You can call static functions on instances too.

-Steve


More information about the Digitalmars-d mailing list