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 <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Sunday, March 26, 2023 4:19 PM To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN