9 comments

[ 3.1 ms ] story [ 28.9 ms ] thread
StackOverflowException. Call heap size exceeded.
Maybe the new checked C can protect against infinite loops too ;)
Why? Infinite loops in C are by design and have many uses: threads waiting for signals, polling, events processing etc.
Heh, need to relax a little then. Anyway, I've heard this complain too many times from inexperienced "programmers" ("Why my program doesn't quit?"), so the truth is not far fetched..
This is a joke... but in reality there are MANY cases where programming language can prevent errors at compile time with no or minimal costs and this could be added to standard C...