History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-301
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Rodrigo B. de Oliveira
Reporter: Edwin de Jonge
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Infinite loop when breaking in a while loop after a nested for loop

Created: 22/Apr/05 05:06 PM   Updated: 23/May/05 08:59 AM
Component/s: Emitter, Compiler
Affects Version/s: 0.5
Fix Version/s: 0.7

Time Tracking:
Not Specified


 Description  « Hide
The following Boo code generates an infinite loop. Leaving the for loop works fine.

while true:
for i in range(2):
pass
break



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Edwin de Jonge - 22/Apr/05 05:08 PM
I lost my tabs in my example, so here with explicit tabbing (\t == tab)

while true:
\tfor i in range(2):
\t\tpass
\tbreak


Rodrigo B. de Oliveira - 22/Apr/05 08:15 PM
wow, that was nasty. thanks for the report!