Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In FORTRAN 77, it'a syntax error to put a statement before column 7


Interesting! Can you explain why that is the case? Were the first 6 characters reserved for the line number or goto marks?


Yes. Columns 1 to 5 are for labels. Column 6, if it has any character there (usually "$"), marks a continuation from the previous line.

I think the column 6 rule and line continuations were removed for FORTRAN 95.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: