Skip to content

Why C sucks. Part 3473.

Sunday, 5 March 2006  |  Lubos Lunak

Every now and again you hear someone complaining about C++. You will probably also have heard that C sucks. The two statements are of course linked; the following code is valid C, but will never compile.

a.c:
#include "a.c"

gcc bails out at the 200th recursion with the error message:

In file included from a.c:1,
a.c:1:15: error: #include nested too deeply

I've omitted the two-hundred line long trace back through the other includes.

Update (apparently needed): Disclaimer: This blog entry on its own doesn't make any sense. If you feel an urge to take it seriously, you probably need to apply your morning coffee.