2 ms·
please post an example of what such a callback would look like
by zabzonk 4y ago
please post an example of what such a callback would look like
- rramadass 4y agoOne example: https://www.codementor.io/@michaelsafyan/object-oriented-programming-in-c-du1081gw2 https://www.codementor.io/@michaelsafyan/object-oriented-pro...
- cihangir 4y agoLinux kernel code makes heavy use of object-oriented design patterns [0]. It's not the best of its kind, but still provides a reasonable example of how OOP can be achieved in C: https://gist.github.com/cakturk/cd75d0ca588151c86d641cb6d5a18153 https://gist.github.com/cakturk/cd75d0ca588151c86d641cb6d5a1... [0] https://lwn.net/Articles/444910/ https://lwn.net/Articles/444910/
- rramadass 4y agoPart 2 to the above lwn article: https://lwn.net/Articles/446317/ https://lwn.net/Articles/446317/