groff
[Top][All Lists]
Advanced

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

Re: Comprehension problem with macros


From: Ralph Corderoy
Subject: Re: Comprehension problem with macros
Date: Sun, 23 Apr 2023 13:40:18 +0100

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]]

-- 
Cheers, Ralph.



reply via email to

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