Archive for date: March 5, 2005

Coroutines in C

March 5, 2005 | Computer Science | By: Mark VandeWettering

I remember blinking a few times the first time someone showed me Duff’s device. It made me ask “is that really legal C”. Simon Tatham’s article Coroutines in C comes very close to provoking the same response. Wacky, wacky code.