groff
[Top][All Lists]
Advanced

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

Re: [Groff] groff data structures


From: Werner LEMBERG
Subject: Re: [Groff] groff data structures
Date: Wed, 30 Dec 2009 05:30:16 +0100 (CET)

> I need to have (for an html project of mine, which you all know
> about by now) a stack data structure.  I know one *really* klugy way
> to do it, by having a number register which counts the depth of my
> stack, and then having a variable which is concatenated to form a
> name like "name0", "name1", etc, so I can automatically reference
> the top variable when I want.

Well, I don't consider this solution `cludgy' at all.  If you have
arguments which contain arbitrary characters, including spaces, this
is the only way to go, AFAIK.  Have a look at the mdoc package which
uses this all the time.


    Werner




reply via email to

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