this is supposed to loop forever because it adds a new element to the list every iteration.
It works only if the list starts with at least 2 elements.
Its like if I try to make a flood-fill, it will start with 1 element, then loop, and each element will create more elements until the area is full.
What should I do, and is this a bug?
It works only if the list starts with at least 2 elements.
Its like if I try to make a flood-fill, it will start with 1 element, then loop, and each element will create more elements until the area is full.
What should I do, and is this a bug?
Type rat EndType Local r:rat list:TList=New TList ListAddLast list,New rat ListAddLast list,New rat 'remove this line and it doesn't work Print "Rats forever breeding!" For r=EachIn list add:+1 Print add ListAddLast list,New rat Delay 500 Next Print "DONE? rats are not asexual"