Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Question about event handling

Name: Anonymous 2014-06-21 11:42

Let's say I use SDL (1.2 or 2.0) in my program to handle events, should I use callbacks or the good old giant switch statement?

Name: /g/reat /g/uy 2014-06-21 18:30

>>20
[](){}
That's C++11, in old C++ you may use functors, and in C you can have something like a lambda expression with macros and function pointers. LISP is not that special m8!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List