Re: Restrictive loop variable testing

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu