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

> Fortran functions correspond to "pure" functions in C/C++ and other languages, i.e. idempotent functions that do not modify arguments or global variables.

This is nonsense. Fortran functions aren't pure. They can have side effects.

HPF/Fortran '95 added the PURE attribute for subprograms, but it's not the default.





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

Search: