On Mon, 26 Oct 2015, Sven Schreiber wrote:
Hi,
a null list somehow isn't a null object to gretl:
<hansl>
open denmark # dummy dataset
list lh = null
if isnull(lh)
print "yep" # doesn't get printed
endif
</hansl>
I actually can understand conceptually that the list 'lh' is "empty"
rather
than non-existing, but then I think either there should be this (new) keyword
'empty' for lists, or isnull(lh) should return True/1 in this case.
The above looks funny, I agree. However, it clearly corresponds to the
documentation of isnull():
"Returns 0 if name is the identifier for a currently defined object,
be it a scalar, a series, a matrix, list, string or bundle; otherwise
returns 1."
Is your suggestion that one should be able to say
list lh = empty # instead of "= null"
?
Allin