home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!DKIBMVM1.VNET.IBM.COM!VALOREV
- X-Delivery-Notice: SMTP MAIL FROM does not correspond to sender.
- Message-ID: <REXXLIST%92081306461937@UCF1VM.BITNET>
- Newsgroups: comp.lang.rexx
- Date: Thu, 13 Aug 1992 12:34:21 DST
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: VALOREV@DKIBMVM1.VNET.IBM.COM
- Subject: Expose of Variables
- Comments: To: rexxlist@ucf1vm.cc.ucf.edu
- Lines: 34
-
- One mentioned, that maybe under VM/ESA you could use a variable to expose
- a list of variables.
-
- To be more precise, this is a feature introduced in REXX Language Level 4.00
- which also is adapted in the SAA CPI Procedures Language Level 2.
-
- I don't know whether VM/ESA supports this level, but OS/2 ver. 1.3 as well as
- 2.0 supports this. In addition the CMS REXX Compiler also supports this.
-
- It functions like this:
-
- /**/
- a=1
- b=2
- c=3
- d=4
- vars='a b'
- call speak_out
- exit
-
- speak_out:
- procedure expose (vars) d
- say a b c d
- return
-
- screen output: 1 2 C 4
-
- So as you see, the parentheses do the magic of exposing the content of that
- variable, as well as the variable it self.
-
- With Kind Regards
- Victor Valore
- Internet: valorev at dkibmvm1.vnet.ibm.com
- Bitnet: valorev at vnet
-