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

When I used to use OOP, I would use void* as a poor man's base object.

It's harder to get that with non-pointers(or pointer-equivalents, like references): What is the calling convention for functions that take Object and return Object? Realize that somebody could upcast an integer into Object and then downcast into a 10000 byte struct, and this could happen across different object files that were written in different languages.



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

Search: