On Mon, 1 Jul 2013 02:07:11 +0200, Bernd Oppolzer wrote: > >By the way: the term "by value" is inherited from ALGOL; there are >two parameter passing mechanisms in ALGOL - by value and by name - >no by reference. By name is similar to by reference, but more complicated - >and not the same. > That's Algol 60 which, perhaps to its detriment, provided no "by reference" option.
Algol 68 passes all parameters by value, but it provides such a richness of expression that one can pass a pointer by value, thus achieving the effect of "by reference", or even a pointer to a local procedure which returns a pointer thereby achieving the effect of "by name". >FORTRAN: by reference > I believe that's peculiar to IBM's implementation of FORTRAN (and some others). The ANSI standard accommodates even passing parameters by value with copy back on return by asserting that if an actual parameter is also accessible in COMMON in the called subroutine, the effect of performing such an access is undefined. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
