I got into the habit of using Q = '7D'X in my REXX prologue.

I would use Q as the Quote in expressions and avoid all the internal
confusion of what is a quoted double quote.

Nasty but worked for me...

On Sun, Jun 16, 2024 at 1:10 PM Paul Gilmartin <
0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote:

> On Sat, 15 Jun 2024 22:28:11 -0400, Bob Bridges wrote:
>
> >Jeremy, you and I agree on a lot of things, but nah, this one isn't for
> me;
> >it's 'way too much like work.  I'm much more likely to do it the other
> way:
> >
> >  msg="You've misdefined '"xyz''' as "'xyz'".'
> >
> >It may take me a couple tries to get it right, but after that I'm never
> >going to look at it again so I don't feel the need to do all the extra
> >typing in order to make it obvious to the passing eye.
> >
> It can't be made obvious.  It's irreducibly complex/x  Aggravated
> by proportional fonts which make a quotation mark indistinguishable
> from a double apostrophe.
>
> >---
> >-----Original Message-----
> >From: Jeremy Nicoll
> >Sent: Saturday, June 15, 2024 05:37
> >
> >Many of the literal strings in my Rexx programs are parts of error
> messages
> >etc and lots of those have single quotes in them, mostly as apostrophes
> ...
> >so I enclose these texts in double quotes.
> >
> >I tend therefore to use double quotes nearly all the time.
> >
> >When I do need to build strings with both in them I tend to do it via two
> >vars
> >
> >  dq = '"'  ;   sq = "'"
> >
> >and end up with lines like
> >
> >  msg = "You've misdefined" sq || "xyz" || sq "as" dq || xyz || dq || "."
>
> --
> gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>


-- 
Wayne V. Bickerdike

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to