Skip to content

Conversation

@RazvanN7
Copy link

@RazvanN7 RazvanN7 commented Jun 27, 2023

Template methods cannot be virtual because they can essentially populate the vtable infinitely. Override is accepted on templates, but it is ignored. A PR to dmd has been raised to make it an error [1] so that the user does not have false assumptions; that PR is currently blocked and will be unblocked by this PR.

[1] dlang/dmd#15350

@RazvanN7
Copy link
Author

cc @rostyboost @CyberShadow .

@CyberShadow
Copy link
Contributor

LGTM but I do not have merge rights here.

Was there a deprecation cycle for this?

@ntrel
Copy link

ntrel commented Jun 27, 2023

The dmd PR currently makes it an error, but I'll change it to a deprecation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants