It all depends on how often one does things in his/her code and the difficulty
or
tediousness involved in specific circumstances. Along lines that are similar to
the original post, I like to "disguise" source literals for things like eye-
catchers -- so they are not misinterpreted in a dump. After coding a few of
these
manually, I decided to create a "MVCFI" (Move Character From Inverted) macro to
simplify that process:
MVCFI S99EID,'S99RBX' Set Block ID
generates:
+ MVCIN S99EID(6),=C'XBR99S'+5 + Move from inverted literal
Manually coding the inverted literal and the length and trailing offset were a
pain, so this was an ideal candidate for a macro. Plus, for anyone that has to
come along later and understand the code, the macro call tends to make the
intent
more obvious, since the literal appears there, un-inverted.
Personally, I have not encountered many circumstances where I needed to MVC
using
the length of the source. I suppose that if it were to become a common practice
for me, something like John Ehrman's macro would clearly be of interest.
--Art Celestini
At 08:26 AM 5/22/2012, John Gilmore wrote:
>Much of this discussion has been motivated by a wish to avoid the use
>of macros, which is at best a sodden aspiration..
>
>John Gilmore, Ashland, MA 01721 - USA