Hacker News new | past | comments | ask | show | jobs | submit login

Presumably one would write an object-oriented version of quicksort to go with their OO C library design and not use the stdlib functions. For example GObject is OOP in C, and I imagine it has collection types with sort methods.

Inheritance is what will bite hard when hand-rolling OOP in C. For one, you can forget about the compiler enforcing substitutability and co/contravariance for you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: