-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
According to the specification section 4:
The
FORconstruct has the formFOR(counter, target){ block }, wherecounteris an identifier andtargetis an expression. At loop entry,targetis evaluated once to a valueT(MUST beINT), andcounteris initialized to theINTvalue1, creating it as anINTif necessary. The loop then repeats: if the current value ofcounteris greater thanT, the loop exits; otherwise, the block executes andcounteris incremented by1before the next iteration.
However, according to the specification section 12.20:
FOR(counter, INT: target){ block };counterinitialized to 0, loop until counter >= target
The note is section 4 is correct, and is used in the current implementations.
Modify section 12.2 so it is consistent with section 4 in regards to FOR loop counter initialization.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation