Re: c macros -- turing complete?



Alex Mizrahi wrote:

i suspect C preprocessor is turing-complete. you can get recursion/looping
via include, and change some state.
here's a link:

http://www.ioccc.org/2001/herrmann1.hint

Nice link. If you read this page you can see that the C preprocessor is not
turing-complete, if you don't use additional external programs, like the
build script used on the page, which feeds the output as new input to the
preprocessor, until the output doesn't change anymore.

--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.