Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 | Lists | API | Security | Legal | Apply to YC | Contact

Search: