Sorry but no.
Structures are passed by value. Modifying an element of the structure in the
called function has no effect on the value of the structure element as seen by
the calling function.
Arrays on the other hand are passed by address. The modified value of an
element of the array in the called function is visible to the calling
function. In techno speak, the value parameter received by the called
function is the address of the first element of the array and has type
"pointer to element type." In other words,
myfunc(arrayname);
is identical to
myfunc(&arrayname[0]);
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Tony Thigpen
Sent: Sunday, March 26, 2023 3:34 PM
To: [email protected]
Subject: Re: ASM call by value
Structures are passed by address, not value.
Tony Thigpen
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN