4 ms·
And the line length limit will soon (with Fortran 2023 later this year) practically go away--a hard limit of 10,000 characters.
by milancurcic 3y ago
And the line length limit will soon (with Fortran 2023 later this year) practically go away--a hard limit of 10,000 characters.
- pklausler 3y agoChanges to the standard don't instantly, or even eventually, cause corresponding changes in implementations. Code that needs to be portable to many implementations will need to worry about line length limits for a long time into the future. The Venn diagram of Fortran feature availability in the various actively maintained Fortran compilers is very messy, and the ISO standard is definitely not a subset of any of them. Standard-conforming code is not necessarily portable, and highly portable code is not necessarily standard-conforming, especially since Fortran '95.
- TheRealKing 3y agoThe hard line limit length is at 1,000,000 characters not 10,000. Also, all major compilers currently have flags to significantly extend the line limit length.
- milancurcic 3y agoYou're correct about the compiler flags. 10K will be the line length limit; the 1M limit is for a statement length that can span any number of lines.