Efficient single inheritance

Efficient single inheritance via virtual structs and unification and nesting of structs and enums.