Hacker News new | ask | show | jobs
by codezero 5194 days ago
Not to be pedantic, but Fortran 1-based array indices are from Fortran 66 and earlier. Fortran 77 and on include the ability to index from any arbitrary integer, including negative ones.

You can declare a 21 element array indexed from -10 like so:

real x(-10:10)

So hopefully anyone familiar with Fortran isn't hung up on 1-based indices.

1 comments

> "N̶o̶t̶ to be pedantic, [...]"
Yep, can't edit it now though :(