Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The compiler (sometimes linker) is perfectly capable of seeing that a class has no derived classes

How? The compiler doesn't see the full program.

The linker I'm less sure about. If the class isn't guaranteed to be fully private wouldn't an optimizing linker have to be conservative in case you inject a derived class?



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

Search: