Support struct "inheritance" (extension)
Open
enhancement
- Dominant language
- Scala
- Stars
- 279
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
C11 supports struct extension, such that:
```
struct Foo {
byte foo1
}
struct Bar {
byte bar1
}
struct Foo_bar {
struct Foo
struct Bar
}
```
Produces the final struct:
```
struct Foo_bar {
byte foo1
byte bar1
}
```
While not a make or break feature, this allows some convenience in allowing composition without nesting, which is already represented by the memory structure.
Contributor guide
Assessment
This issue has not been assessed yet.