No. Call by reference is where the language processor automatically figures out 
what the address and associated data, e.g., array extents, are. 


--
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 11:48 AM
To: [email protected]
Subject: Re: As a long-time Rexx programmer

call by value where the value is an address
That's the definition of call by reference.
________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Seymour J Metz <[email protected]>
Sent: Wednesday, July 3, 2024 11:44:49 AM
To: [email protected] <[email protected]>
Subject: [EXTERNAL] Re: As a long-time Rexx programmer

It's not really call by reference; it's call by value where the value is an 
address.

However, ooRexx has added call by reference, at least to other Rexx code.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of Jon 
Perryman <[email protected]>
Sent: Wednesday, July 3, 2024 10:34 AM
To: [email protected]
Subject: Re: As a long-time Rexx programmer

On Wed, 3 Jul 2024 07:36:39 -0500, Paul Gilmartin <[email protected]> wrote:

>> call-by-reference is a parameter passing format used by programs.
>No.  I once looked at the SMP/E API which depends heavily on passing
>references.  Has anyone been able to address the SMP/E API from Rexx?

ADDRESS LINKPGM GIMAPI arg1 arg2 arg... has been around as far as I can 
remember.

You'll need to be familiar with using storage( ), overlay( ), C2X( ), X2C( ), 
just to name a few.

----------------------------------------------------------------------
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


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

Reply via email to