Hi,
working with bundles, gretl is "too liberal" for my taste:
<hansl>
bundle bb = null
matrix ms = zeros(1,1)
scalar bb.s = ms # want to have scalar
string check = typestr(inbundle(bb,s))
print check # yields "matrix"
</hansl>
You could say, why do expect to get out a scalar if you stuff in a
matrix, but this is for illustration. I'd rather have gretl flag an
error if it doesn't want to comply with my "scalar" assignment. Then I
could do something like 'ms[1,1]' for example.
But my ideal here would be that gretl sees the "scalar" keyword and cast
the 1x1-matrix to a scalar number type.
thanks,
sven