This would be feature bloat, as there are ways to do all this
already.

On Tue, 3
May 2011 13:17:27 -0700 (PDT) Dorai Sitaram <[email protected]> wrote:

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

Try writing a simple macro (eg)

.params m n $@

where m or n can be -.

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

For strings try using the .substring command.

Denis

Reply via email to