Implement @disable methods as always-throw methods?
Jonathan M Davis
jmdavisProg at gmx.com
Sun Oct 2 13:16:15 PDT 2011
On Sunday, October 02, 2011 19:59:01 Timon Gehr wrote:
> Imho disabling overriden member functions is unsound and should be
> disallowed entirely.
Agreed. It goes against the basic principles of OO design. A derived class
_is_ an instance of its base class, and it should be possible to treat it as
its base class. Disabling overridden functions goes completely against that
and therefore seems like a _really_ bad design.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list