[TUHS] v7 K&R C
dave at horsfall.org
Thu May 14 17:38:32 AEST 2020
On Wed, 13 May 2020, Rich Morin wrote:
> A Fortran implementation I used years ago kept constants in a "literal
> pool". So, if you called a subroutine, passing in a constant, there was
> a possibility that the constant might be modified upon the routine's
> return. I don't recall this ever causing a problem in practice, but the
> possibility was amusing...
As I dimly recall, Fortran has always used call by value/result (or
whatever the term is). So, if you modify an argument that happened to be
passed as a constant...
More information about the TUHS