Re: A question for you translators out there
Ryan Ginstrom wrote:
>
> It has (thankfully) been many years since I did fortran, but couldn't you
> fake recursion with gotos?
>
Yep. Took some array manipulation to simulate a stack, but it worked. No
worse than trying to code true "call by reference" in Algol-58 and
Algol-60 (my first programming language). They both used "Call by name."
Call by name was a real bitch, both for the compiler implementer and the
unwary coder that wrote a simple line of code like swap (i,x[i]). In
call by name, once you changed the value of i, the location pointed to
by x[i] moved accordingly, even though neither x or i was in the scope
of the subroutine. Wirth later admitted that it was a mistake, and he
just hadn't specified "call by reference" correctly.
KWW
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735