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

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.



> "N̶o̶t̶ to be pedantic, [...]"


Yep, can't edit it now though :(




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

Search: