News for hackers. Stuff that matters.
Re:Object-Oriented Programming in C (2019) [pdf] by mitghi on Monday September 06, 2021 @04:52PM (#28437985)
Its possible to use partial function to simulate method calls in C by memoizing the first argument which is always a pointer to the struct that method is getting called from. It requires little assembly. Check this: https://github.com/sharow/experiments/tree/master/partial

There are no comments on this comment yet.