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

If you're interested in safer code when working with older versions of Fortran, add 'implicit none' at the top. This will eliminate the integer vs. float automatic assignment and make variable definition much tighter. Back when I mucked about with Fortran (previous century really), we tried to do the memory allocation and I/O in C and the compute in Fortran. That would play well with both superscalar and vector machines.


Pro tip: ctrl-f or find in page helps a lot. The author talks about implicit none and shows it in code.


You didn’t read the article?


All of it, no. But I never used Fortran 90 yet used implicit none. Might have been an extension from SGI or a mini super but I recall using it.




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

Search: