Interfaces with structs...?

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Jul 5 11:36:02 PDT 2012


On 05-Jul-12 22:23, Adam D. Ruppe wrote:
> I just had a wild idea... struct A : static Interface {}
>
> the static means it checks for the functions but doesn't
> do any runtime polymorphism.

Hm... sounds not bad. And it adds another way to reuse static, thus 
Walter must love the idea *LOL*

-- 
Dmitry Olshansky




More information about the Digitalmars-d-learn mailing list