NetLogo/NetLogo — Issue #38: 5.0 regression: stop inside foreach not working properly
Author: SethTisue
Created: 2011-11-26 05:37:43+00:00
State: open

these tests (if added to `test/commands/Stop.txt`) fail.

```text
StopFromForeach2
to test foreach [1 2 3] [ if ? = 2 [ stop ] set glob1 glob1 + ? ] end
O> test
glob1 => 1

StopFromForeach3
to test1 test2 test2 end
to test2 foreach [1 2 3 4 5] [ set glob1 glob1 + ? stop ] end
O> test1
glob1 => 2
```

reported by Onno Steenbergen