you are viewing a single comment's thread
view the rest of the comments
[–] 32 points 2 years ago* (last edited 2 years ago) (1 child)

idk, this arbitrary i-n range behaving differently than other variables sounds like a terrible source of weird bugs to me. I don't think variable names should ever change a program's behavior.

edit:

Many old Fortran 77 programs uses these implicit rules, but you should not! The probability of errors in your program grows dramatically if you do not consistently declare your variables.

source

  • source
  • parent
  • hideshow 2 child comments
  • [–] 29 points 2 years ago (1 child)

    This comes from early years, when FORTRAN was introduced and the programmers needed to save space in the punch cards. Today, to avoid this possible source of bugs, you usually state "implicit none" in the preamble.

  • source
  • parent
  • hideshow 2 child comments