[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Divert into string variable
From: |
Carsten Kunze |
Subject: |
Re: [Groff] Divert into string variable |
Date: |
Sat, 29 Nov 2014 21:46:32 +0100 (CET) |
> > Yes. But does this say that the diverted data can be accessed via \*(xx?
>
> It shouldn't be done. Whether it *can* be done is an implementation
> detail. In many languages you can create interesting effects by
> writing to an array with an out-of-bounds index. That doesn't mean
> it *should* be done, and it's also not something usually advertised
> in language tutorials.
>
> > (As I said this is done in historical mdoc but does not work reliable.)
>
> Then mdoc is buggy and should be fixed. ("Not work reliable" is a
> different expression for "it's badly programmed".)
To be fair--I refer to the first published mdoc release from 1993 :-)
The handling of diversions is "not optimal" but in general (IMHO) the
author had done an ambitious work with this macro package...