On Wed, 6 Apr 2016, oleg_komashko(a)ukr.net wrote:
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
This is a very subtle bug. Sven's variant -- without the intermediate
variable "mix" -- should work also. It's to do with the
"compilation"
of the test that includes an OR. You can provoke the same crash using
the query operator:
matrix m = ones(3,1)
loop i=1..3 -q
x = (i <= 2 || m[i] > 0.5)? 13 : -7
endloop
It's obviously a priority to fix this; I'm working on it.
Allin