www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - abstract inheritance

reply Sean Kelly <sean f4.ca> writes:
I think it's a tad odd that this compiles:












I had assumed that thhis was the equivalent of the C++ code:












ie. that it forced the user to implement the functions and the bodies were
provided as defaults.

Sean
Jul 24 2004
parent Nick <Nick_member pathlink.com> writes:
In article <cducnr$1731$1 digitaldaemon.com>, Sean Kelly says...
I think it's a tad odd that this compiles:











[snip]
Well, considering that the following just compiled and ran: I'd say it looks like the 'abstract' attribute is completely ignored when you specify a function body. The docs are painfully low on details about the 'abstract' attribute, so I'm not really sure if this classifies as a bug :) Nick
Jul 24 2004