31.1.08

Duff's Device

http://research.swtch.com/2008/01/on-duffs-device-and-coroutines.html

Duff's device is a strange quirk in the C language. No it is not something wrong about compilers etc. since it is perfectly valid C program by any grammar / standard that you want!



1 comment:

Jaideep said...

I had come across this while reading comp.lang.c. It seemed pretty interesting, however I never tried it myself.
Do you know of any situation where this might be useful?