Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kergonath
· 3y ago · 0 comments
Yes, but in practice no compiler checks whether an argument with no INTENT is modified or not, or could alias with something else or not. So the compilers tend to trust the programmer. With INTENTS, it’s obvious and much easier to check.
Comments
[–]
pklausler
3y ago
Dummy argument aliasing has nothing to do with INTENT.
[–]
TheRealKing
3y ago
I believe the NAG Fortran compiler does check for some aliasing scenarios if not all. The argument intent is irrelevant.