Hacker News new | ask | show | jobs
by munchler 922 days ago
Fortran doesn’t even have dynamic memory allocation, so it’s inherently safe.
2 comments

It actually has had this since Fortran-90, and there's even a 'pointer' keyword.
https://www.ibm.com/docs/en/xffbg/121.141?topic=attributes-a...

No pointer direct arithmetic, though. If you allocate the memory via allocate, you can inquire if it's been deallocated.