3 ms·
Conceptually, it is: IMP tmp = objc_msg_lookup(object, selector); goto *tmp; but C can't handle that (and even with gcc computed gotos you need to pre
by ksherlock 10y ago
Conceptually, it is:
IMP tmp = objc_msg_lookup(object, selector);
goto *tmp;
but C can't handle that (and even with gcc computed gotos you need to preserve any argument registers and not screw up the stack).
objc_msgSend has a variable number of arguments and no way to determine how many there are.