> Date: Tue, 25 Jul 2000 19:22:45 +0400
> From: Darima Lamazhapova <[log in to unmask]>
> Hello!
> I'm novice in FORTRAN, and also I don't know is my question is suitable
> here. My question concerns good programming style. I was taught that
> GOTO operator is an obsolescence and should not be used. But in many
> fortran programs I meet GOTO very often (e.g. to organize the cycle
> using IF construction).
In Fortran, it is now rarely necessary to use GOTO.
There are CYCLE and EXIT statements to assist in loops.
IF/THEN/ELSE/ENDIF enable conditionals to be written without
GOTO.
> Does the good style of FORTRAN programs allow
> using operator GOTO?
> Darima.
> mailto: [log in to unmask]
>
>
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|