home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!SERVER.UWINDSOR.CA!OPHOF
- X-Mailer: ELM [version 2.3 PL11]
- Message-ID: <9209151933.AA07564@SERVER.uwindsor.ca>
- Newsgroups: comp.lang.rexx
- Date: Tue, 15 Sep 1992 15:33:20 EDT
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: Scott Ophof <ophof@SERVER.UWINDSOR.CA>
- Subject: Re: Expressions in compound variables (was Re: NOVALUE)
- Comments: To: REXXLIST@uga.cc.uga.edu
- In-Reply-To: <9209151222.AA07451@SERVER.uwindsor.ca>; from "Linda Littleton"
- at Sep 14, 92 5:13 pm
- Lines: 57
-
- On Mon, 14 Sep 1992 17:13:16 EDT Linda Littleton said:
- >In article <REXXLIST%92091210585300@UGA.CC.UGA.EDU>, Dave Gomberg 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? */
- >>it turned out to be next to impossible to define.
- >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.
-
- We're now 3 years further. The ANSI-REXX committee might be able to
- do what didn't seem possible back then to the SHARE REXX committee?
-
- Like in Linda's example:
- x.(y+1)
- currently is a call to the FUNCTION "x."... How's *that* for an
- "astonishment factor"? (*grin*)
- TRL says that a functionname must be a symbol or a literal string.
- And the dot is a valid character in a symbol.
- Do we need to give up the dot as ending character in a function-
- name to achieve this?
- May I suggest that we *not* suggest use of "{}} (curly braces) or
- "[]" (square brackets)? That's national language stuff, and thus
- even "worse" than the whitespace subject... (*WINK*)
-
- In REXX as-is, "stem.'LiTeRaL'" is taken as a stem abutted with a
- literal (the stem may or may not have been initialised).
-
- a.x =; a. =; (Undefined stem/tail and stem itself)
- Say a.'X' --> A.X (Undefined var abutted with literal)
- a.x = 4; a. = 0
- Say a.x --> 0 (Initialised stem, Undefined tail)
- Say a.'X' --> 0X (Initialised stem abutted with literal)
-
- The last example here actually was a bit astonishing, till the mush
- (No, Al, *not* the mail program! ;-> ) started bubbling...
- The problem is, do we want to give up (part of) the abuttal concept?
- In other words (with tongue in cheek), must we type:
- a. || 'o' --> Hello (after setting a.='Hell')
- if we want abuttal of the value of a stem and a literal,
- and:
- lastname.'John' --> Doe
- to do what doesn't seem very astonishing but isn't allowed with the
- current REXX standard?
-
- These are *some* of the problems we'd run into. Are there any other
- areas which might cause breakage?
-
- As a side note, I wish that there was a file available somewhere
- with all the suggestions for enhancements/extensions which did *not*
- make it into REXX, with the reasons. Anyone having an idea could
- then determine from that file whether the idea was worth bringing up
- (possibly again). Mike Cowlishaw must have a 3370 disk full of such
- suggestions, at 350 items/day when he wrote REXX...
-
-
- Regards.
- $$/
-