3 ms·
I often find tutorials about C language miss details about standard object-oriented programming with C. How to do inheritance, type checking, fields and methods
by nshm 8y ago
I often find tutorials about C language miss details about standard object-oriented programming with C. How to do inheritance, type checking, fields and methods, ref counting and so on. The practices are used in almost any C software today but rarely covered systematically.
- klez 8y agoColor me interested. Where can I find a codebase that uses this? Especially inheritance.
- nshm 8y agoLike here https://www.codeproject.com/articles/108830/inheritance-and-polymorphism-in-c https://www.codeproject.com/articles/108830/inheritance-and-.... For examples of this you can check gnu tools like gcc or gdb, or glib-based libraries or the kernel source.