groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comprehension problem with macros


From: Oliver Corff
Subject: Re: Comprehension problem with macros
Date: Sun, 23 Apr 2023 15:16:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

HI Ralph,

not that I do not get the difference;-) However, I was not sure it would
*work*.

Best regards,

Oliver.


On 23/04/2023 14:40, Ralph Corderoy wrote:
Hi Oliver,

I was not quite sure if I could abuse single-digit numbers in such a
way.
Single-digit strings.

Sure, it's not abuse.  It's the language.  Just as dc(1) allows a byte
as the name of a string.

     $ dc -e '6 7*s
     > cl
     > p'
     42
     $

If you think it might clash with other uses of strings 0, 1, ... then
prefix their name.

     .ds lut0 0
     ...
     \[u216\*[lut\nn]]

--
Dr. Oliver Corff
Mail: oliver.corff@email.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]