[Issue 3396] Call of abstract method not detected by semantic check
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 18 02:59:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=3396
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |verylonglogin.reg at gmail.com
Hardware|x86 |All
Resolution|--- |INVALID
OS|Windows |All
--- Comment #3 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
This is a documented and intended behavior. According to [1]:
> Functions declared as abstract can still have function bodies. This is so that even though they must be overridden, they can still provide ‘base class functionality.’
It also maches C++ behavior with respect to pure virtual functions.
An enhancement request to change it may be opened but this bug is invalid.
[1] http://dlang.org/attribute.html#abstract
--
More information about the Digitalmars-d-bugs
mailing list