News for hackers. Stuff that matters.
Re:What if anything have we learned from C++? [video] by pjc50 on Friday July 24, 2015 @06:55AM (#9941120)
C has a generic: "void *". It just doesn't have any type safety.
Re:What if anything have we learned from C++? [video] by eutectic on Friday July 24, 2015 @08:17AM (#9941396)
It also has bad performance if you need to pass function pointers around.
Re:What if anything have we learned from C++? [video] by pjc50 on Friday July 24, 2015 @09:20AM (#9941746)
Is this noticeably worse than calling through the vtable?
Re:What if anything have we learned from C++? [video] by eots on Friday July 24, 2015 @10:16AM (#9942118)
In C++ generics don't involve calling through a vtable.