This works
matrix m = ones(3,1)
ix = 1
loop 3 -q
mix = m[ix]
if (ix <= 2)||(mix>0.5)
print "hey"
endif
ix++
endloop
Clear, Gretl should output
"error evaluating if"
provided
if (ix <= 2)||(m[ix]>0.5)
and not crash
Oleh
6 квітня 2016, 20:33:01, від "Sven Schreiber" <svetosch(a)gmx.net>:
Am 06.04.2016 um 18:02 schrieb Sven Schreiber:
> Am 06.04.2016 um 17:20 schrieb Sven Schreiber:
>
>>
>> But the situation is still tricky. I have had a gretl crash with a
>> complex foreign/R block,
>
> I have noticed that some interim mistake here on my side (meaning not
> present from the start of the whole story) involved having the
> "--send-data=mylistname" option both at the top and again at the bottom
> of the foreign block. Hard to say whether that was related to the crash
> (not a sufficient condition I think), but maybe worth checking.
>
Ok, I have found the (or at least one) reason for the crash, and it has
nothing to do with the whole R-business. Here's a minimal (?) example
that crashes for me every time:
matrix m = ones(3,1)
ix = 1
loop 3 # must be bigger than the 2 in the if-clause
if (ix <= 2) || (m[ix] > 0.5)
print "hey"
endif
ix++
endloop
Why do I always have to get these things? Sigh.
cheers,
sven
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel