News for hackers. Stuff that matters.
Re:Higher-order programming in C by davvid on Saturday June 30, 2012 @06:33PM (#4183018)
For the set of features you have, with most calling conventions on most platforms you don't need to synthesize all that. You could simply have your apply function be written in assembly and handle setting up the parameters fetching them from memory.

Like this? https://github.com/davvid/libapply

unittest.c shows how it can be used: https://github.com/davvid/libapply/blob/master/unittest.c

There are no comments on this comment yet.