Re:Swift and the Legacy of Functional Programming
by eridius on Monday November 21, 2016 @01:58PM
(#13008066)
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).
[ Parent
| on HN ]