home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / rexx / 1453 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!rutgers!ub!csn!stortek!sanitas!pg
  2. From: pg@sanitas.stortek.com (Paul Gilmartin)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Lower-case alphabetic set
  5. Message-ID: <1993Jan5.055753.19116@stortek.com>
  6. Date: 5 Jan 93 05:57:53 GMT
  7. References: <johnv.040n@acix.DIALix.oz.au>
  8. Sender: usenet@stortek.com
  9. Organization: Storage Technology Corp.
  10. Lines: 16
  11. Nntp-Posting-Host: sanitas.stortek.com
  12. X-Newsreader: TIN [version 1.1 PL7]
  13.  
  14. John Verhoeven (johnv@acix.DIALix.oz.au) wrote:
  15. : David McAnally (acus02@ems13.corp.mot.com) wrote:
  16. : > TRANSLATE(instring,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ' 
  17. : > )
  18. : Or slightly shorter...
  19. : TRANSLATE(instring,XRANGE('a','z'),XRANGE('A','Z'))
  20.  
  21. <Ahem> David's is correct; yours is wrong: you translate (possible)
  22. non-alphabetic characters among XRANGE('A','Z') to different, not
  23. necessarily non-alphabetic, characters among XRANGE('a','z').  The Rexx
  24. standard does not guarantee that XRANGE('A','Z') contains only alphabetic
  25. characters; nor even that it contains the same number of characters as
  26. XRANGE('a','z'); nor that the two don't overlap.  I regularly use a
  27. dialect of Rexx for which not all these assumptions are true.
  28.