Can we just have struct inheritence already?
Mike Parker
aldacron at gmail.com
Sun Jun 9 08:39:09 UTC 2019
On Sunday, 9 June 2019 at 08:19:46 UTC, KnightMare wrote:
>
> what is the problem not doing this?
> copying is not to difficult: blit and call postblit for all
> members if they have it.
> what the problem i forgot?
Object slicing. It's a problem with inherited types when passed
by value.
https://stackoverflow.com/questions/274626/what-is-object-slicing#274636
More information about the Digitalmars-d
mailing list