Can we just have struct inheritence already?

KnightMare black80 at bk.ru
Sun Jun 9 08:45:06 UTC 2019


On Sunday, 9 June 2019 at 08:39:09 UTC, Mike Parker wrote:
>
> Object slicing. It's a problem with inherited types when passed 
> by value.
>
> https://stackoverflow.com/questions/274626/what-is-object-slicing#274636

in C++ this problem solved easy: cut data to base struct and u 
cant call methods of derived struct. nobody asks virtuals in 
struct


More information about the Digitalmars-d mailing list