On 11/02/18 20:48, Paul Gilmartin wrote:
IBM FORTRAN, for example, passes everything by reference (think CALL macro).
(But my experience may be many decades outdated.)

At least one early FORTRAN compiler passed everything by reference.
If you passed the number 3, the subroutine received the address
in the literal table where the number 3 was stored, and could
assign a new value to it. From that point on, any references
to the literal number 3 in the program would get the new value!


Dr Martin Ward | Email: mar...@gkc.org.uk | http://www.gkc.org.uk
G.K.Chesterton site: http://www.gkc.org.uk/gkc | Erdos number: 4

Reply via email to