home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 1029 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.lang.rexx
  2. Path: sparky!uunet!wrkgrp!ets
  3. From: ets@wrkgrp.COM (Edward T Spire)
  4. Subject: Re: NOVALUE (was: Blanks, REXX, and portability...)
  5. Message-ID: <1992Sep15.212407.12086@wrkgrp.COM>
  6. Organization: The Workstation Group
  7. References: <2427.imc@uk.ac.ox.prg>
  8. Date: Tue, 15 Sep 92 21:24:07 GMT
  9. Lines: 31
  10.  
  11. imc@comlab.ox.ac.uk (Ian Collier) writes:
  12. : And in article <1686052F.GILMART@LSTC2VM.stortek.com>, he quoth:
  13. : >But it would be a real pain if this were reported as an error unless there
  14. : >were some way to use explicit constants -- better by far, general expressions
  15. : >-- as compound variable indices.  Namely:
  16. :  
  17. : >   say a.'X'   /* so I don't have to assign 'X' to dummy */
  18. : >               /* and even:  */
  19. : >   say a.(substr('UVWXYZ',4,1))   /* Why not, haven't you wanted it? */
  20. :  
  21. : >Is anyone proposing this extremely desirable extension?
  22. :  
  23. : You can already do this on REXX/imc.  Of course, I'm not asking anyone
  24. : actually to use that feature! :-)
  25.  
  26. So in REXX/imc, what does this say:
  27.  
  28. a.=1
  29. a.x=2
  30. say a.'X'
  31.  
  32. I got the impression from the above that it would say 2.
  33. Shouldn't it say 1X (i.e., abbutal concatenation)?
  34.  
  35. I don't think you can extend the language in this specific manner
  36. without breakage.  And yet this requirement has been discussed,
  37. I'm just not up on the details of any proposed syntax.  Maybe they
  38. exhibit the same problem...
  39.  
  40. -Ed
  41.