Or the pointer includes metadata, e.g., array bounds, the maximum size of a vaying string.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Eric Rossman <[email protected]> Sent: Wednesday, July 3, 2024 2:19 PM To: [email protected] Subject: Re: As a long-time Rexx programmer The pointer is not modifiable. The storage to which it points may be. While some languages might abstract away the actual pointer, in the end a pointer is passed for anything that doesn't fit in a register and the only difference is whether that pointer is to the original storage (by reference) or to a copy (by value). ________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Paul Gilmartin <[email protected]> Sent: Wednesday, July 3, 2024 12:07:02 PM To: [email protected] <[email protected]> Subject: [EXTERNAL] Re: As a long-time Rexx programmer On Wed, 3 Jul 2024 15:48:16 +0000, Eric Rossman wrote: >>call by value where the value is an address >That's the definition of call by reference. > Not quite. Only in the former case the called routine receives a modifiable local copy of that pointer. In the latter, no pointer is visible. >________________________________ >From: Seymour J Metz >Sent: Wednesday, July 3, 2024 11:44:49 AM > >It's tot really call by reference; it's call by value where the value is an >address. -- 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
