efficios / barectf

Generator of ANSI C tracers which output CTF data streams
https://barectf.org
MIT License
65 stars 17 forks source link

Multiple inheritance for new Type objects #16

Closed louisnells closed 4 years ago

louisnells commented 5 years ago

Is it possible to inherit multiple existing user defined data-types in to a new data-type ?

I am assuming all the parent data-types have non-overlapping/unique member fields ...

eepp commented 4 years ago

Unfortunately, no, but this is a good idea.

It could work like $include where you can specify an array of field types to inherit from:

$inherit:
  - parent-type-a
  - parent-type-b
# ...

Thanks for the suggestion.