3 ms·
Yes exactly. I believe Fortran and Perl only do pass by reference, for example. It's not a C++ concept, I only used C++ in that example simply because godbolt.
by pdpi 5y ago
Yes exactly. I believe Fortran and Perl only do pass by reference, for example.
It's not a C++ concept, I only used C++ in that example simply because godbolt.org makes it really easy to show how the language treats the two concepts differently even though they compile to the same thing.
- TheRealKing 5y agoThe Fortran standard is deliberately silent about the passing method. However, virtually all Fortran compilers pass by reference.