Hacker News new | ask | show | jobs
by danellis 5089 days ago
Showing some C-like pseudo-code would probably do the trick nicely.
1 comments

p->m() ~= m(p) - e.g. the object is pushed as the first argument to the method.

The actual "m" is found by looking at the "p" class if it's non-virtual, and at the "v-table" in p if it's "virtual".

If "m" is static, no class lookup, or object v-table lookup is done, and the call is p->m() ~= m()