6 ms·
There's also "computed gotos". It's not the same as function pointers, though. https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-ta
by WGH_ 5y ago
There's also "computed gotos". It's not the same as function pointers, though.
https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-tables https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e... - article about them being used in CPython
- MaxBarraclough 5y agoGforth uses the same trick. https://www.complang.tuwien.ac.at/forth/threaded-code.html https://www.complang.tuwien.ac.at/forth/threaded-code.html