home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!wrkgrp!ets
- From: ets@wrkgrp.COM (Edward T Spire)
- Subject: Re: Expressions in compound variables (was Re: NOVALUE)
- Message-ID: <1992Sep15.213117.12218@wrkgrp.COM>
- Organization: The Workstation Group
- References: <92258.171316LRL@psuvm.psu.edu>
- Date: Tue, 15 Sep 92 21:31:17 GMT
- Lines: 30
-
- LRL@psuvm.psu.edu (Linda Littleton) writes:
- : In article <REXXLIST%92091210585300@UGA.CC.UGA.EDU>, Dave Gomberg
- : <GOMBERG@UCSFVM.BITNET> says:
- :
- : >On Sat, 12 Sep 1992 06:22:02 GMT Paul Gilmartin said:
- : >> say a.(substr('UVWXYZ',4,1)) /* Why not, haven't you wanted it? */
- : >>
- : >>Is anyone proposing this extremely desirable extension?
- :
- : >When the SHARE REXX committee debated this "extension" at great length,
- : >it turned out to be next to impossible to define.
- :
- : Dave, Maybe you're remembering a different discussion than I do. SHARE
- : did put in a requirement for this back in 1989. I think it is a useful
- : extension and would reduce the "astonishment factor" new users have when
- : they find that things like this (especially simpler things like x.(y+1))
- : don't work.
-
- Ah, there's the syntax that was discussed. Yes, it too does have a bit
- of breakage, i.e.,
-
- x.=9
- x.2=8
- say x.(1+1)
-
- would say "8" with this extension, while it says "92" now. This does
- look like less breakage than stem.'X', however (you'd need stem.('X')
- in that case... even less likely to be in an existing program)
-
- -Ed
-