[Issue 4542] [tdpl] TDPL NVI example results in linker error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 15 11:54:29 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=4542
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #18 from RazvanN <razvan.nitu1305 at gmail.com> ---
The spec seems to be clear about this [1]:
"""
The following are not virtual:
- Struct and union member functions
- final member functions
- static member functions
- Member functions which are private or package
- Member template functions
"""
So it seems that TDPL is wrong in this aspect.
I'm going to close this as per the arguments of Jonathan.
[1] https://dlang.org/spec/function.html#virtual-functions
--
More information about the Digitalmars-d-bugs
mailing list