Right, it makes it into (effectively) on long "continued" (if you will) literal. Effectively, not literally.
I was assuming the IBM mainframe as this is the IBMMAIN mailing list. And my point is not the value x'0a' but rather the technique. Substitute whatever magic number is a linefeed on your platform. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Seymour J Metz Sent: Saturday, June 26, 2021 8:22 PM To: [email protected] Subject: Re: Coding for the future That '||' changes the semantic; the is no longer an implied blank between the two literals. Using the magic number 0A will break the code on any platform that doesn't follow C/Unix the convention of LF for new line. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Charles Mills [[email protected]] Sent: Friday, June 25, 2021 7:57 PM To: [email protected] Subject: Re: Coding for the future Flogging this terminally ill equine late in the game, but gosh, relative to #1, it is not a literal (ha ha) answer but does it not solve the problem? Foo = "blah blah" || , "blah blah" I would think that MFC would have preferred that to "ugly." And regarding #2, similarly Bar = "blah blah" || X2C("0A") || "blah blah" Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Seymour J Metz Sent: Friday, June 25, 2021 4:32 PM To: [email protected] Subject: Re: Coding for the future I can see him agreeing that an expression involving two distinct strings is not what he meant; that tells me nothing about what he did mean. Specifically, it does not tell me whether he meant: 1. A string literal running over two source lines whose value does not include an embedded new line. 2. A string literal whose value includes an embedded new line With either meaning, " I wish Rexx supported multi-line strings." remains a reasnoable desire, in the sense that REXX does not currently support it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
