digitalmars.D - static and instance opDispatch
- John Chapman (4/4) Nov 19 2018 Is there any reason both static and instance opDispatch can't
- Steven Schveighoffer (3/6) Nov 19 2018 You can call static functions on instances too.
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?
Nov 19 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
Nov 19 2018