3 ms·
Replying to myself to leave this here, since it's vaguely related. If anyone really want to have nightmares about OO'ish concepts in C, here is a few different
by vidarh 4y ago
Replying to myself to leave this here, since it's vaguely related. If anyone really want to have nightmares about OO'ish concepts in C, here is a few different ways to implement closures in C, going from relatively straightforward, to (unportable) runtime generation of assembler thunks:
https://hokstad.com/how-to-implement-closures https://hokstad.com/how-to-implement-closures
- deleted 4y ago[deleted]