groff
[Top][All Lists]
Advanced

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

[Groff] \$[m-n] \$[m-] \$[-n]


From: Dorai Sitaram
Subject: [Groff] \$[m-n] \$[m-] \$[-n]
Date: Tue, 3 May 2011 13:17:27 -0700 (PDT)

Wouldn't it be useful to have parameters like \$[m-n] that pick out the 
parameters \$m through \$n ?

Right now, a macro's body can use \$1 ... \$n, and \$*, and \$@, and then call 
.shift howsoever many times to get the right "slice".  However, a similar 
ability isn't available for string definitions (with .ds).   \$[m-n] (and 
perhaps also \$[m-] and \$[-n] where one end of the range is not specified) 
would ameliorate this lack.

--d




reply via email to

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