November 09, 2005
DMD 0.138 allows function bodies for abstract functions, but derived types are still supposed to override the abstract functions. However, this following code shows that 'abstract' appears to be ignored.

class AbstractTest {

    abstract void test() {
    }

}

class ConcreteTest : AbstractTest {
}

ConcreteTest concreteTest = new ConcreteTest;
concreteTest.test();


November 12, 2005
John C schrieb am 2005-11-09:
> DMD 0.138 allows function bodies for abstract functions, but derived types are still supposed to override the abstract functions. However, this following code shows that 'abstract' appears to be ignored.
>
> class AbstractTest {
>
>     abstract void test() {
>     }
>
> }
>
> class ConcreteTest : AbstractTest {
> }
>
> ConcreteTest concreteTest = new ConcreteTest;
> concreteTest.test();

Added to DStress as http://dstress.kuehne.cn/nocompile/a/abstract_15.d

Thomas