On Sun, 26 Mar 2023 21:35:13 +0000 Frank Swarbrick
<[email protected]> wrote:

:>Can the MVS CALL macro be used to call a C function with "value" parameters 
(rather than reference parameters)?

What does "call by value" look like?

Does the subroutine definition indicate that the parameters are by value? If
not, all call by value means is that should the subroutine alter the value,
the change is discarded.

For example, instead of

                  CALL  rtn,(A,B)

do

                   MVC   ACOPY,A
                   MVC   BCOPY,B
                   CALL rtn,(ACOPY,BCOPY)

Should RTN change the first parameter, it will not change A.

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to