On Mon, 22 May 2017, Sven Schreiber wrote:
Hi,
I'd like to know whether I can rely on a behavior in gretl 2017a which seems
to fail in 2016d (and earlier?).
The following is intended usage and runs fine here on 2017a:
<hansl>
function void mscheck(matrix m)
print m
end function
# call with actual matrix
mscheck(I(2))
# call with scalar as 1x1 matrix substitute
mscheck(3)
</hansl>
However, it seems that passing a scalar to a matrix argument provokes a type
mismatch error in gretl 2016d. (Couldn't run exactly the above example now,
but the error was pretty clear.)
So, is that a new feature in 2017a and is here to stay, or just luck?
New feature, here to stay.
Allin