On Sat, 1 Apr 2023 13:34:02 +0000, Peter Relson wrote:

>    ... One is to make a copy and pass the argument by reference to the copy. 
> Another is to pass the actual value (somewhere, somehow).
>
??? "somehow".  The mechanism of passing an "actual value" distinct
from a copy is left as an exercise for the student's imagination.

>    ...  Or make your own copy.
>
A third option for languages providing a syntactic distinction between 
"reference"
and "value" is that the caller could pass a reference and entry code in the 
called
routine could transparently make a copy.  This should provide "value" semantics,
except for a few race conditions, with the advantage that the code to copy 
exists
once in the entry rather than at each point of call.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to