The diff between Posix compliant and not? Linux is Not Unix. zOS, iirc is by being Posix compliant.
Sent from my iPhone — small keyboarf, fat fungrs, stupd spell manglr. Expct mistaks > On Jun 27, 2021, at 1:55 PM, Seymour J Metz <[email protected]> wrote: > > Yes, but the original code inserted a blank between the two strings; It's > the difference between continuing "'foo bar'" and continuing "'foo bar '". > > Linux on z and z/OS Unix System Services both run on an IBM mainframe but > they don't use the same line end convention. > > What if I want the code to run on multiple platforms? That's an example of > why magic numbers are bad. > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > ________________________________________ > From: IBM Mainframe Discussion List [[email protected]] on behalf of > Charles Mills [[email protected]] > Sent: Sunday, June 27, 2021 1:45 PM > To: [email protected] > Subject: Re: Coding for the future > > 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 > > ---------------------------------------------------------------------- > 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
