News for hackers. Stuff that matters.
Re:Inheritance Often Doesn't Make Sense by stephen_gareth on Sunday March 18, 2018 @03:59PM (#16613943)
In Sean Parent's 'Inheritance is the base class of evil' talk Sean outlines an interesting way to achieve runtime polymorphism without inheriting interfaces in C++.

https://www.youtube.com/watch?v=bIhUE5uUFOA

Re:Inheritance Often Doesn't Make Sense by Paul_Dirac on Monday March 19, 2018 @07:24AM (#16617596)
But he uses interface inheritance.

You see it at 9:44. Where he creates the concept_t and int_model_t inherits from it.

Re:Inheritance Often Doesn't Make Sense by stephen_gareth on Wednesday March 21, 2018 @03:50PM (#16641674)
Indeed. But the original type isn't 'burdened' with the interface. I've used the technique for a simple audio signal processing chain.