4 ms·
If your answer is binary, that's true, but quoting the post, 'Fortran is not immune to [memory errors], though it is less vulnerable than pointer-based languag
by Bostonian 3y ago
If your answer is binary, that's true, but quoting the post,
'Fortran is not immune to [memory errors], though it is less vulnerable than pointer-based languages. Fortran does have a restricted form of pointers, but for most applications, allocatable arrays provide a flexible and memory safe alternative. Unlike pointer arrays, allocatable arrays cannot leak memory or leave dangling references.'
- pklausler 3y agoC++ is “memory-safe” too, then; just use smart pointers and STL containers, right? But no, that’s not really what the term means.