I have noticed int he past that dark basic pro programs dont end without using task manager. I was experimenting with recursion today and using the following code:
print_text()
end
function print_text()
wait 100
print "Hello world!"
print_text()
endfunction
I found something. The code above is equivalent in operation to:
do
wait 100
print "Hello world!"
loop
However, the recursion code is nearly impossible to close, and like a program that you try to close while executing a for next loop, you need the task manager.
Therefore, i think i have figure out that DBPro uses recursion to simulate for next loops! Does anyone know if im right?