Am 11.01.2021 um 15:28 schrieb Allin Cottrell:
On Sun, 10 Jan 2021, Sven Schreiber wrote:
> Am 09.01.2021 um 22:14 schrieb Sven Schreiber:
>> Am 09.01.2021 um 16:44 schrieb Allin Cottrell:
>
>>> we could support an array of strings variant, something like:
>>>
>>> strings R = defarray("b[1,2] = 0", "b[2,1] = 0")
>>> restrict $system
>>> strings R
>>> end restrict
>>>
>>> with the keyword "strings" guiding gretl's interpretation.
>
> [Not the main point of this reply, but: wouldn't it be a problem that
> normally "strings" is an alias for "genr", but here it's not?
Of course
> the context resolves this, but still.]
Yes, "strings" may not be the best keyword for that context. We already
have "Rvec" so we could use "Rstrings". But if we think this
approach
might be helpful for programmatic handling of other block-commands then
a more generic keyword would be wanted, maybe "cmdstrings" or similar.
I guess you mean Rmat and qvec, or isn't it actually just R and q?
Anyway, I like "lines" because it's all about passing several lines in a
different format.
BTW this facility (with keyword "strings", and for
"restrict" only) is
now in git. (I'm confident it's a harmless experiment.)
OK, let's try it.
thanks
sven