structs inheriting from and implementing interfaces

Mike Franklin slavo5150 at yahoo.com
Fri Dec 29 12:18:57 UTC 2017


On Friday, 29 December 2017 at 12:11:46 UTC, rikki cattermole 
wrote:
> Structs are structs, classes are classes.

I'm talking about interfaces, which are neither structs nor 
classes.

> C++ had the mixed model similar to what you suggested, we got 
> it right and kept it nice and separate. This was done on 
> purpose.

I'm comparing with C#, not C++.  And structs implementing 
interfaces does not blur the two concepts, as C# eloquently 
demonstrates.

Mike


More information about the Digitalmars-d-learn mailing list