Hacker News new | comments | show | ask | jobs | submit login

C macros are not Turing complete, they're a pushdown automaton.

C++ templates are.

Check out this IOCCC entry which does simulate a Turing machine, but only by having another script repeatedly run it.

Edit: Yes, I meant to copy the link, see mchouza's comment for the link.

Link: http://www.ioccc.org/2001/ (herrmann1 files)

Sorry, you're totally right. My bad.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact