Can we just have struct inheritence already?

KnightMare black80 at bk.ru
Sun Jun 9 08:42:22 UTC 2019


On Sunday, 9 June 2019 at 08:31:40 UTC, Andre Pany wrote:
>
> Users would then also expect they can use the derived 
> structures in places where there ancestors are expected, 
> similar like with classes;)
> And also they can overload the functions of this structures.
> Then we need to add a monitor field to all structures to 
> enabled it.

not really. people will try to use keywords "virtual" or 
"override" and compiler will say/stop it. enough to get burned 
once.


More information about the Digitalmars-d mailing list