At the moment, if you want to do a forall loop, you must define the index
outside of the loop, like this:
#import <flx.flxh>
var i:int;
forall i in 0 upto 5 do
print i; endl;
done;
Any chance that that "i" could be implicitly made, like this?
#import <flx.flxh>
forall var i in 0 upto 5 do
print i; endl;
done;
I'd like it even better if that var was implicit too, if that were possible.
-e
Logged In: YES
user_id=41692
Dropping priority.
So this can be compressed into one line simply by doing this:
var i:int; forall i in 0 upto 5 do
print i; endl;
done;
Unfortunately, there's no work around to having to specify i as an int instead
of it being inferred.