| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Pl/I |
In a message dated 01-15-99, Mike Ruskai said to Ivan Todoroski about
"Pl/I"
Hi Mike,
IT> say translate(infile, xrange("A","Z"),
xrange("a","z"))
[snip]
MR>While this works in ASCII and EBCDIC, there's no guarantee that letters
MR>in a code page are assigned in alphabetical order.
Actually, it won't work in EBCDIC.
MR>Simply typing the
MR>alphabet once avoids the potential problem (I'll admit I don't know of
MR>any character set where it is a problem), and it only needs to be typed
MR>once.
This is correct for the issue Murray's code was addressing.
However, XRANGE() does not really limit itself to this. In that regard,
XRANGE() is probably an inappropriate tool to use if portability is
required.
MR>There's also the possibility that while the characters will be in order,
MR>there will be other non-alpha characters in the middle, that could
MR>unwittingly be translated incorrectly.
That is the problem with EBCDIC.
MR>Of course, I also never use anything other than || to concatenate in
MR>REXX, because I make what I want to accomplish explicit.
101% correct. ... :-)
Regards
Dave
___
* MR/2 2.25 #353 * Does Microsoft mean "small and limp"?
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/252 SEEN-BY: 670/218 @PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.