override and interface methods
FeepingCreature
feepingcreature at gmail.com
Mon Oct 29 15:41:46 UTC 2018
On Monday, 29 October 2018 at 15:30:27 UTC, Steven Schveighoffer
wrote:
> For sure, we can't add a requirement for override on an
> interface, as you aren't exactly overriding an existing
> implementation. Too much code is out there that does not
> specify override for interfaces.
>
> -Steve
Isn't that what the deprecate cycle exists for? I mean, it seems
like a symmetrical issue to what you had with regular class
override. And the argument that "it's not override on an
interface" really seems straight up wrong to me, since you *can*
write override - the compiler *already* agrees that implementing
an interface method falls under the override umbrella.
More information about the Digitalmars-d
mailing list