On Sun, Jan 22, 2023 at 5:36 PM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
Hi, not sure if the following is a bug per se, but the error message is strange in any
case:
<hansl>
open denmark
matrix dummymat = {3, 0.5; 2, 0.6; 4, 0.9}
strings somenames = defarray("ha", "ho", "he")
modprint dummymat somenames # works
extram = {-3}
somenames += "extra"
modprint dummymat somenames extram # works
modprint dummymat somenames {-3} # fails
</hansl>
So it looks as if the vector at the end of the modprint command cannot be given as a
literal. This looks like a bug to me, but not sure. The error message, however, claims
that the strings array before it is causing problems, and I guess that's just wrong.
The third argument must be a named matrix. In principle this could be
relaxed but I wouldn't say it's a bug. This is a command after all.
But the error message was certainly wrong and that's now fixed in git.
Allin