Re:What is the advantage of currying?
by Someone on Saturday February 02, 2013 @08:18AM
(#5155910)
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.
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.