3 ms·
Safe bet? For C, I am not sure of that. They would want to stay close to the metal, and have true function pointers. Creating those on the fly means having the
by Someone 14y ago
Safe bet? For C, I am not sure of that.
They would want to stay close to the metal, and have true function pointers. Creating those on the fly means having them in the data segment (or some horrendous OS-specific and likely slow hack), and that is at odds with data execution prevention.
C++ already has them, sort of. Templates accept 'anything that you can put () behind'. That includes function pointers and operator() overloads.