My two cents
Walter Bright
newshound2 at digitalmars.com
Tue Oct 24 10:20:43 UTC 2017
On 10/24/2017 1:13 AM, Satoshi wrote:
> But it's quite useless to me.
That's what interfaces are for. Define your View and Button as interfaces. The
implementations of interfaces are completely hidden from the derived class.
> But the worst part is that I need to hold di in sync to d files manually, so
> there is not any advantages over C++'s header files.
dmd will generate the .di files for you with the -Hd switch. But I suggest using
interfaces instead, which look ideal for your application.
More information about the Digitalmars-d
mailing list