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!
Subscribe to:
Post Comments (Atom)
1 comment:
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?
Post a Comment