Can we just have struct inheritence already?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Jun 10 09:58:39 UTC 2019


On Monday, 10 June 2019 at 08:33:55 UTC, Ola Fosheim Grøstad 
wrote:
> struct A { char a; /* 3 unused bytes */ double b; }
> struct B : A { char c; }
>
> Should result in { char a; char c; /*3 unused bytes*/ double b;}

Err, that should be:

Should result in { char a; char c; /*2 unused bytes*/ double b;}




More information about the Digitalmars-d mailing list