Re:OOP in C
by codr7 on Sunday January 08, 2023 @09:44AM
(#34299486)
Having spent quite some time down that rabbit hole back in the days, I'd definitely recommend against pushing C in that direction. Few people love GObject, for good reasons.
Embedding combined with the container_of-macro [0] is a much more constructive approach from my experience.
Embedding combined with the container_of-macro [0] is a much more constructive approach from my experience.
[0] https://stackoverflow.com/questions/15832301/understanding-c...