November 19, 2018 static and instance opDispatch | ||||
---|---|---|---|---|
| ||||
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? |
November 19, 2018 Re: static and instance opDispatch | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Chapman | 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
|
Copyright © 1999-2021 by the D Language Foundation