+ 4
C - Why can't you define a function inside a struct?
6 Answers
+ 5
You can use function pointers. It can work well.
+ 5
Because the language does not allow it.
+ 3
Because C is not C++? đ
+ 3
Théophile, can you give a minimalistic example of how that works?
+ 2
Nice, Jay!
+ 2
HonFu it seems that I hadn't the time to answer...
Nice code, Jay Matthews!