https://issues.dlang.org/show_bug.cgi?id=3396

Denis Shelomovskij <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
           Hardware|x86                         |All
         Resolution|---                         |INVALID
                 OS|Windows                     |All

--- Comment #3 from Denis Shelomovskij <[email protected]> ---
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

--

Reply via email to