Werner thank you,
Just out of interest. As someone who hates typing a lot and loves
silly 2 character names,
I would write a Perl script to list and sort number registers in
source files.
Is there a utility that does that regarding groff and other compiled
companions?
Perhaps done using the source just before compilation?
Miklos
On 04/01/2009, at 06:58 PM, Werner LEMBERG wrote:
Groff is a programming language, sort of. I wonder whether already
exist a scope-separating mechanism for number registers,
No.
just I do not know about it, or is there such a thing in the
pipeline in the future?
Yes.
If you mistype the name of a macro, it won't get executed, and in
the absence of a warning you may think that everything is ok. I
believe that one may get a warning, but I can't find it how.
groff's command line option -ww activates all warnings.
With number registers, what is the best policy to avoid conflict? By
naming conventions? Weirder and weirder?
A macro package `foo' should use its name as a prefix to create a kind
of namespace: foo_bar, foo:bar, foo-bar, foo*bar, etc., etc.
Werner