Are interfaces supported in Better C mode?
Dibyendu Majumdar
d.majumdar at gmail.com
Sat Nov 14 21:40:31 UTC 2020
On Saturday, 14 November 2020 at 21:09:59 UTC, Dibyendu Majumdar
wrote:
> Reading the docs on Better C mode I got the impression that it
> should be possible to implement an interface in a struct. Is
> this not the case?
>
I guess it needs to be class?
extern (C++) interface A {
void sayHello();
}
extern (C++) class B : A {
void sayHello() {}
}
Above seems to compile.
More information about the Digitalmars-d
mailing list