Quite often, when using "do...over" there is a need for having a counter that 
increases
automatically on each loop.

Currently one needs to use a separate variable that gets explicitly increased 
within the loop, e.g.:

    i=1
    do idx over dir
        say "entry #" i": idx="idx "dir[idx]="dir
        i=i+1
    end

It would be great if one could use optionally a counter in the do...over case 
as well, something like:

    do idx over dir counter i
       say "entry #" i": idx="idx "dir[idx]="dir
    end

where "counter" would be a subkeyword defining a loop variable which starts out 
with "1" and gets
increased by one after each loop.

---rony

_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to