Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
| 
| Lars> Angus Leeming <[EMAIL PROTECTED]> writes: | Attached is a small
| Lars> patch allowing error and warning free compilation of | current
| Lars> CVS with DEC cxx.
| 
| Lars> Please enlighten me why this is needed:
| 
| The second for() loop reuses the value of 'j' at exit of the first
| for() loop! The code might not be pretty to you, but that's how it
| works now.

Yes you are right... the second loop variable should change name imo,
because it is not the same loop as above so:

        int j = pos;
        for(; ...)
        ...
        for(int i = j + 1; ...)
        ...

Note:

        int j;
        for(j = pos; ...)

Is always bad. Use
        int j = pos;
        for(; ...)
instead.

        Lgb

Reply via email to