Am 27.04.2022 um 10:52 schrieb Marcin Błażejowski:
Hi,
simple script:
<hansl>
eval varname({2}) # works
[Given an active dataset, so to replicate need to do
'open denmark' or
something similar.]
eval varname({2, 3}) # we get SIGSEGV
I can confirm the crash
on Windows.
Note that AFAICS this usage is not supported by the 'varname' spec,
which expects an integer or a list. The first case above with {2} is
special because of gretl's promise to accept a 1x1 matrix wherever a
scalar should work. But the second case with a 1x2 vector is not valid I
think. (What works is to say 'eval varname(deflist(2,3))' instead.)
Of course, and as always, a crash shouldn't happen, but I think an
invalid argument type error should be thrown here.
thanks
sven