=== on 2 Dec 2014, 09:29:56 Pierre-Yves Nicolas wrote:
In fact, it's not an infinite loop because of integer overflow. On my computer, the noncompliant example above finishes in less than a second.
=== on 13 Mar 2015, 14:03:09 Pierre-Yves Nicolas wrote:
In JavaScript, moving the counter in the wrong direction causes an infinite loop because there is no integer type. All numbers are 64 bit floating point numbers.