I can only assume it’s an infinite loop.
Can I leave out any of the three expressions in a for loop? Is there a default for each when omitted?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is indeed an infinite loop.
Under the hood the compiler/jitter will optimize this to (effectively) a simple JMP operation.
It’s also effectively the same as:
(except that this is also optimized away, since the (true) part of a while expression usually requires some sort of comparison, however in this case, there’s nothing to compare. Just keep on looping!)