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

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!darwin.sura.net!paladin.american.edu!auvm!UCSFVM.BITNET!GOMBERG
  3. Message-ID: <REXXLIST%92091110040337@UGA.CC.UGA.EDU>
  4. Newsgroups: comp.lang.rexx
  5. Date:         Fri, 11 Sep 1992 07:00:56 PDT
  6. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  7. From:         Dave Gomberg <GOMBERG@UCSFVM.BITNET>
  8. Subject:      Re: NOVALUE (was: Blanks, REXX, and portability...)
  9. In-Reply-To:  Message of Fri,
  10.               11 Sep 1992 01:17:32 GMT from <bobcook@UNIXHUB.SLAC.STANFORD.EDU>
  11. Lines: 18
  12.  
  13. On Fri, 11 Sep 1992 01:17:32 GMT Bob Cook said:
  14. >At least, it doesn't on VM/CMS.  In the following piece of
  15. >code, the "say" statement produces "Hi" on the console, even though it uses
  16. >the variable named X, which has never been initialized.
  17. >
  18. >  signal on novalue
  19. >  dummy = 'X'
  20. >  a.dummy = 'Hi'
  21. >  say a.x
  22. >  exit
  23. >Novalue: Say 'Oops'
  24.  
  25. There is no occurance of a variable named x in this program fragment.  There
  26. is a constant whose value is the single letter X in upper case, and there is
  27. a variable reference to a.x.  This is no more a reference to x then a.2 is
  28. a reference to the number 2.  To see this, notice that the number 2 (or any
  29. number) is to be taken in some base, while the notion of base is completely
  30. irrelevant in the reference to a.2.  There, 2 is just a one character string.
  31.