4 ms·
> Is there a language where, when B is a field of A, you can find A from B? It's not unusual in system/kernel C/C++ code to do that with offsetof() macro.
by marwis 6y ago
> Is there a language where, when B is a field of A, you can find A from B?
It's not unusual in system/kernel C/C++ code to do that with offsetof() macro.