It's a bit worse with ooRexx; by the time I learn the ins and outs of all of the classes they will have added more. Once you get used to it, it's hard to live without it.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Rupert Reynolds [rreyno...@cix.co.uk] Sent: Thursday, April 6, 2023 3:01 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: REXX/COBOL conversion question The "principle of least astonishment" works well for me in Rexx, although I confess it took a while to make the best of it :-) Yes, I checked in ooRexx and in the docs for Regina:- Comparison with = is case-sensitive and leading/trailing blanks are stripped and/or added. So (" " = "") evaluates to true. Compare() is different--shorter string is padded on the right (with blanks by default), but leading and trailing blanks are compared. I wrote the proof-of-concept bytecode interpreter for my toy language project in Rexx, and its rich text handling and arbitrary precision arithmetic far outweighed its other quirks. 200-digit logarithms, anyone? :-) Roops P.S. Most Rexx peops end up with something like dorexx.rex:- /* Rexx to noodle about. Enter EXIT to quit */ do forever parse pull stuff interpret stuff end On Thu, 6 Apr 2023, 18:05 Seymour J Metz, <sme...@gmu.edu> wrote: > Why? Unless you use a strict (==) compare REXX will add trailing blanks. > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN