DMD 1.026 and 2.010 releases

Extrawurst spam at extrawurst.org
Wed Jan 23 13:47:45 PST 2008


Sean Kelly schrieb:
>     interface I { void fn(); }
>     class C : I { void fn() {} }
>     class D : I { void fn() {} }
>
>     I getAnI() { /* return new C or D */ }
>
>     scope i = getAnI(); // shouldn't this be legal?
>   

Oh i beg to get this to work again, the workaround looks ridiculous to me.


~Stephan


More information about the Digitalmars-d-announce mailing list