News for hackers. Stuff that matters.
Re:OOP in C by zozbot234 on Sunday January 08, 2023 @09:51AM (#34299541)
Traits implement interface inheritance, yes. #derive has nothing to do with derived classes in OOP, it's an annotation-like facility that adds auto-generated code to any object.
Re:OOP in C by queuebert on Sunday January 08, 2023 @01:10PM (#34301459)
Isn't #derive a syntactical sugar for a bare impl?