In the answer to another issue (https://forum.netlogo.org/t/problem-with-new-behavior-of-resize-world/822/3), it was mentioned that clearing the tick counter would stop forever buttons for which property “Disable until ticks start” was set.
I was intrigued by that behavior and made a small test model – see attachment.
It turns out that forever buttons will not always stop when ticks are cleared.
In fact, when not restarting the tick counter, the button does not stop at all, and it is even impossible stopping the button by clicking it. (Halt is the only way.)
This might be system dependent. I have tested this in Windows 10 and Windows 11.
(The behavior is reproducible in all NetLogo versions from 5.0, when clear-ticks and “Disable until ticks start” were introduced, up to and including version 7.0.4)
Interestingly, after replacing clear-ticks in all go procedures by resize-world with random valid dimensions (in NetLogo 7.0.4) the forever buttons don’t stop either.
Conclusion: trying to stop a forever button by clearing the tick counter is unreliable.
forever-clearticks.nlogox (5.8 KB)