2 ms·
What about all the deprecated and deleted features? I haven't used Fortran in over 40 years. But, at the time, the following features were in very common use:
by PhantomGremlin 6y ago
What about all the deprecated and deleted features?
I haven't used Fortran in over 40 years. But, at the time, the following features were in very common use:
Arithmetic IF-statement
Non-integer DO parameters
H edit descriptors
Computed GO TO statement
And probably a bunch more from the list: https://en.wikipedia.org/wiki/Fortran#Obsolescence_and_deletions https://en.wikipedia.org/wiki/Fortran#Obsolescence_and_delet...
These features are easily changed in the source code. So does the compiler still support them? Or is there the equivalent of the python 2to3 program?
- leephillips 6y agoI don’t use Fortran regularly, or much at all, any more, so I’ll defer to someone who knows. But I think that after some point, the standards committee made a commitment to backwards compatibility, and these deprecated features actually still work, although people would be unlikely to use them in new code, because they are now considered bad practice.
- TheRealKing 6y agoVirtually all compilers still support them, even the most modern compilers that support Fortran 2018 (Intel, GNU, IBM, NAG, ...). The source file extensions readily tell the compiler what sort of code the compiler is dealing with. In the worst case scenarios that I have seen, the compiler issues a warning when encountering obsolescent language features.