by mamcx · 10y ago · 0 comments
I'm doing a interpreter (F#) and I have find that surfacing functions from the host is not that easy as I have imagined before.
You can take a look at some native functions here: https://github.com/tadeuzagallo/verve-lang/blob/master/runti... And the implementation for the `op_call` opcode here (notice it has 2 branches: op_call_builtin and op_call_closure, the former is for `extern`ed functions): https://github.com/tadeuzagallo/verve-lang/blob/master/runti...