Yes it is possible. In fact, excluding the loop transform from the scope of the loop index variable was kind of tricky.
It would change the semantics of the loop transform a little. Instead of being evaluated once it would be evaluated on each loop iteration. This would produce different results if the loop transform has random elements.
Code: Select all
loop 10 [x 1..2] { blah blah blah }
would have a random step each iteration. If you wanted to have a random step that was the same for each loop iteration then you would have to do:
Code: Select all
step = 1..2
loop 10 [x step] { blah blah blah }
Anyway, yes I can do this. I will put out another beta release (hopefully the last) when it is ready.