line
breaks
I'll try to do something. For now the problem is follows:
I opened my message from gretl mail list: it looked ok,
copy-pasted it to a gretl script window, again it looks ok.
So, I do not know how to check it.
Oleh
P.S. next time I'll remove extended formatting option
from my mail client
7 грудня 2015, 01:52:16, від "Allin Cottrell" <cottrell(a)wfu.edu>:
On Mon, 7 Dec 2015, oleg_komashko(a)ukr.net wrote:
> Dear all, To reproduce
> > 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
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel