It would be great to be able to pass stems to Rexx functions, internal or
external. Even with an internal function, you are reduced to passing the
NAME of the step in quotes, and having the function use Interpret or Value
or similar.

I don't know exactly what the invocation syntax would be, but it would be
great also if functions could return stems. As it is, if a function wants to
return multiple values, they must be either exposed variables (with all of
the potential problems) or parsed by the caller from a single returned
string (clumsy and non-intuitive).

I guess the "invocation syntax" problem is fundamentally the problem that
Rexx has no "stem assignment." Rexx really could use

ToVar. = FromVar.

Then the stem function invocation could be something like

ToVar. = StemFunc.(x, y, z)

It would not work for "stem functions," but at the very least, it would be
great if you could do "stem assignment" with something like

Do x = Every tail of FromVar.
    ToVar.x = FromVar.x
    End x

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of wtrovijo
Sent: Tuesday, January 16, 2007 8:37 AM
To: [email protected]
Subject: Re: PULL? PUSH? STEM? (was: REXX EXECIO changing LOWERCASE TO
UPPERCASE)

By the way it would be nice to have some kind of modified rexx environment
to allow rexx programs to share stems. It would avoid passing data thru
stacks even between different rexx programs

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to