On Mon, 7 Dec 2015, oleg_komashko(a)ukr.net wrote:
Dear all, To reproduce
<hansl
function void testfun (scalar x, int n[1::1],list z[null], string s[null]) isn =
exists(n) print isn isz = exists(z) print isz iss = exists(s) print iss
end function
nulldata 1
series z1 = 1 series z2 = 2 list zz = z1 z2
testfun(1) testfun(1,1) testfun(1,1,z1) testfun(1,1,zz) testfun(1,1,zz,"a")
hansl>
The behavior of exists() with strings is different. The more,
there's difference across data types but not across the
situations. Is this a bug or I missed something from the help?
It's a bug, now fixed in git. With strings, we have to be careful
with the notorious use/mention distinction (that is, "s" as string
literal versus 's' as the name of a string) and that was not done
right for exists().
P.S. Oleh, any chance of your using a mail program that respects
line breaks, so that I and others don't have to download and edit
your mails before we can figure out what the heck you're talking
about?
(see
http://lists.wfu.edu/pipermail/gretl-devel/2015-December/006327.html
for example)
Allin