3 ms·
In Fortran, it is a do-loop :)
by zabzonk 1y ago
In Fortran, it is a do-loop :)
- bee_rider 1y agoFortran has grown a lot over time. If somebody said it don’t have a do loop in 196X, I wouldn’t be too surprised. Really it’s just syntactic sugar, just use a goto.
- pklausler 1y agoThe entire point of Fortran was being an effective optimizing compiler for DO loops.
- bregma 1y agoFORTRAN IV, at least the version I used on the PDP-11 running RSX, did not have a DO-loop. Just IF and GO TO. But it did have both logical and arithmetic IF.
- pklausler 1y agoI don’t believe this.