News for hackers. Stuff that matters.
Re:Object-oriented techniques in C by jasode on Tuesday September 22, 2015 @03:32PM (#10261037)
> and trust me, it ends up as a disaster. [...] please do not do this in any project... for the sake of any who will follow you in maintaining your code!

The Linux kernel has some OO techniques in C. 2-part story:

https://lwn.net/Articles/444910/

https://lwn.net/Articles/446317/

I don't follow the Linux development mailing lists so I don't know if Linus Torvalds and other respected contributors regard those techniques as "disasters". Maybe they do.

Re:Object-oriented techniques in C by Skunkleton on Tuesday September 22, 2015 @06:25PM (#10262126)
I would argue that the linux kernel is largely object oriented, especially in the realm of device drivers. Every subsystem that I have worked with has you fill out the equivalent of a vtable, and passes state through structs rather than globally.