On Thu, Feb 12, 2026 at 12:09 PM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
Am 12.02.2026 um 17:25 schrieb Sven Schreiber:
>
> <hansl>
>
> function matrices Mhey(void)
> return empty # gives generic "data error", works with defarray()
> end function
>
> Mhey()
>
> </hansl>
>
A somewhat related follow-up report, but not the same thing as before.
1. (Re-) start gretl to make sure the session is "clean".
2. Load the attached script marrtest.inp (in the GUI program)
3. Run it the 1st time; for me this prints out "yay" without error.
4. Run it another time, then I get a "data not conformable" error
It's weird because the error only appears in the second run -- but it's
reproducible here on Windows with a recent post-2026a snapshot.
Note when I replace the line "return defarray()" with a more explicit
two-liner:
matrices M = empty
return M
then things seem to be more robust [...]
Yes, there's some stuff that needs work here -- either explicitly
banning usage that's too confusing to gretl, or engineering proper
support for such cases. But it's clear enough how to stay out of
trouble: when creating an array always be explicit about its type.
Allin