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

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!DKNKURZ1.BITNET!RZOTTO
  3. X-Acknowledge-To: <RZOTTO@DKNKURZ1>
  4. Message-ID: <REXXLIST%92091110055825@DEARN>
  5. Newsgroups: comp.lang.rexx
  6. Date:         Fri, 11 Sep 1992 09:55:05 MEZ
  7. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  8. From:         Otto Stolz <RZOTTO@DKNKURZ1.BITNET>
  9. Subject:      Re: Blanks, REXX, and portability...
  10. In-Reply-To:  Message of Wed,
  11.               9 Sep 92 05:27:26 GMT from <mwm@CONTESSA.PALO-ALTO.CA.US>
  12. Lines: 37
  13.  
  14. In <1992Sep5.134720.1@sejnet.sunet.se>, eric@sejnet.sunet.se (Eric
  15. Thomas) wrote:
  16. > REXX is intrinsically un-unixish:
  17. > identifiers and statements are not case sensitive,
  18. > the language is verbose,
  19. > very few special characters are used,
  20. > strings are not terminated by \0,
  21. > the default value of a variable is its name in UPPER case,
  22. > and so on.
  23.  
  24. On Wed, 9 Sep 92 05:27:26 GMT Mike Meyer said:
  25. > Personally, the only thing about this list that bothers me is
  26. > variables having a default value. That's because it makes a large
  27. > class of typos hard to find, and I have the same complaint about any
  28. > programming language that has the same design flaw.
  29. >
  30. > That's also the only thing on that list that Rexx does differently
  31. > from my favorite language.
  32.  
  33. To turn REXX into your favourite language, just include the following two
  34. magic lines with every REXX program you write, or edit:
  35.    signal on novalue
  36.    address none
  37.  
  38. The former line tells the REXX interpreter to check for un-initialized
  39. variables (effectively catching typos in variable names), the latter
  40. tells it to send the results of bare expressions to an non-existing
  41. environment (effectively catching typos in key-words -- provided there
  42. is actually no active environment that happens to be named "NONE", of
  43. course).
  44.  
  45. I have made an habit of including those lines with every program, and
  46. they have saved me lots of debugging-time!
  47.  
  48. Happy programming,
  49.                     Otto Stolz <RZOTTO@DKNKURZ1.Bitnet>
  50.                                <RZOTTO@nyx.uni-konstanz.de>
  51.