True, but "passing by reference" and "passing a 'reference' (pointer/address) by value" are the same.
In COBOL, for example, the following end up doing the same thing. call 'myfunc' using by reference my-field call 'myfunc' using by value address of my-field Both are the same as doing the following in C: myfunc(&my_field) ________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Paul Gilmartin <[email protected]> Sent: Sunday, March 26, 2023 4:19 PM To: [email protected] <[email protected]> Subject: Re: ASM call by value On Sun, 26 Mar 2023 21:35:13 +0000, Frank Swarbrick wrote: >Can the MVS CALL macro be used to call a C function with "value" parameters >(rather than reference parameters)? > Aren't all parameters in C passed by value? C has no construct of "reference parameters". -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
