home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- 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
- Message-ID: <REXXLIST%92091110040337@UGA.CC.UGA.EDU>
- Newsgroups: comp.lang.rexx
- Date: Fri, 11 Sep 1992 07:00:56 PDT
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: Dave Gomberg <GOMBERG@UCSFVM.BITNET>
- Subject: Re: NOVALUE (was: Blanks, REXX, and portability...)
- In-Reply-To: Message of Fri,
- 11 Sep 1992 01:17:32 GMT from <bobcook@UNIXHUB.SLAC.STANFORD.EDU>
- Lines: 18
-
- On Fri, 11 Sep 1992 01:17:32 GMT Bob Cook said:
- >At least, it doesn't on VM/CMS. In the following piece of
- >code, the "say" statement produces "Hi" on the console, even though it uses
- >the variable named X, which has never been initialized.
- >
- > signal on novalue
- > dummy = 'X'
- > a.dummy = 'Hi'
- > say a.x
- > exit
- >Novalue: Say 'Oops'
-
- There is no occurance of a variable named x in this program fragment. There
- is a constant whose value is the single letter X in upper case, and there is
- a variable reference to a.x. This is no more a reference to x then a.2 is
- a reference to the number 2. To see this, notice that the number 2 (or any
- number) is to be taken in some base, while the notion of base is completely
- irrelevant in the reference to a.2. There, 2 is just a one character string.
-