2 ms·
Back in the 1990s, the video game company I worked at would hang a couple of extra void pointers in every class just to, you know, store extra things that are n
by ttul 5y ago
Back in the 1990s, the video game company I worked at would hang a couple of extra void pointers in every class just to, you know, store extra things that are needed as time goes on…
- dnautics 5y agoThis was common in the 90s, BeOS had these everywhere in its API classes
- nielsbot 5y agoThis is because of the fragile ABI problem in C++--it's not good for APIs for this reason. I used to program for the macOS kernel and they (used to) do exactly the same thing. See `OSMetaClassDefineReservedUnused` in `OSObject.cpp`, here: https://github.com/apple/darwin-xnu/blob/main/libkern/c++/OSObject.cpp https://github.com/apple/darwin-xnu/blob/main/libkern/c++/OS...