3 ms·
That's not a function, that's a closure. And you can simulate that in C by creating a struct that contains the function pointer and the set of captured data (an
by eridius 10y ago
That's not a function, that's a closure. And you can simulate that in C by creating a struct that contains the function pointer and the set of captured data (and then when you invoke the function you pass the struct to it as a parameter).