For...To...Step

Monkey Forums/Monkey Programming/For...To...Step

degac(Posted 2011) [#1]
I suppose Step var MUST be a constant like in BlitzMax.
I get funny error about Segmentation and refers to C:\dropbox\monkeydev\modules....


therevills(Posted 2011) [#2]
This works for me:




degac(Posted 2011) [#3]
of course, T is a constant...
I was checking with T as variable, and it didnt' work.


therevills(Posted 2011) [#4]
Ahh, I thought you were getting a strange error with segmentation... when I declare t as a local, I get a compiliation error "Expression cannot be statically evaluated" at the For line.