Am 09.01.2021 um 16:44 schrieb Allin Cottrell:
On Sat, 9 Jan 2021, Sven Schreiber wrote:
> Yeah, well, I knew that, but was somehow hoping to simply relay
> standard restriction specification syntax.
> Perhaps I can come up with a function that translates human-readable
> system restrictions into that format...
That's precisely what "restrict" does. Rather than hacking up a way to
send a multi-line string to restrict via string-substitution, I suppose
we could support an array of strings variant, something like:
strings R = defarray("b[1,2] = 0", "b[2,1] = 0")
with the keyword "strings" guiding gretl's interpretation.
Ah, that would be nice of course. I was also thinking if perhaps in some
situations some other character (combination) could signify a separation
of command lines. Obviously the usual character in many languages would
be ";", but in gretl/hansl that would probably be too ambiguous. Perhaps
a double ";;"?
So what I mean in this context would be to write something like:
b[1,2] = 0 ;; b[2,1] = 0