Re: Restrictive loop variable testing
- Posted by DerekParnell (admin) Apr 01, 2010
- 992 views
alanjohnoxley said...
"The compiler will not allow any assignments to a loop variable" </eucode>
But sometimes I do want to alter the loop variable ...
A future enhancement planned for the language will allow the coder to use a predeclared loop variable, something like this ...
-- -- test loop variable alteration -- procedure test() integer a for a = 1 to 19 do a = a + 7 end for sprintf("%2d",{a}) end procedure
It hasn't been implemented yet as there is some more discussion required.