K
Keith Thompson
Eric Sosman said:All of them consume more cycles than your machine can execute.
Aleph-null is aleph-null is aleph-null, and the Universe will rot
away before any of these loops completes.
(Unless you've got a DeathStation 9000, of course. The DS9K
is so fast it can complete a well-optimized infinite loop in twenty
seconds.)
Given this:
...
for (; { }
puts("Done!");
it can legally complete the loop as long as it never gets around to
executing the puts call.