2 ms·
> One interesting feature of Fortran that might help with the second question is how restricted the use of pointers is. There is no restrictions in the use of
by sampo 10y ago
> One interesting feature of Fortran that might help with the second question is how restricted the use of pointers is.
There is no restrictions in the use of pointers in Fortran, the compiler knows pointers can overlap. The restriction is when arrays are passed as arrays (passed by reference internally), not pointers.
- azag0 10y agoOh, there are. In particular, actual variables and arrays can be pointed to only if explicitly declared as "target".