sub foo()
word i=0
for i=0:10
if i%3
return 1
endif
endfor
endsub
It works fine interpreted and compiled the first few times, but when compiled it leaks the eval stack each time we do the return 1. The reason for this is the for pushes some stuff to the eval stack which the endfor usually handles, but here we are jumping out. Need to re-work this code. Think it only applies to this specific case with for loops.
Suppose we have a subroutine like this:
It works fine interpreted and compiled the first few times, but when compiled it leaks the eval stack each time we do the
return 1
. The reason for this is thefor
pushes some stuff to the eval stack which theendfor
usually handles, but here we are jumping out. Need to re-work this code. Think it only applies to this specific case withfor
loops.