On 11/15/2012 04:00 PM, Henrique Andrade wrote:
Dear Allin,
I found a potential bug using multiple loops. Please take a look at the
following Hansl code:
<hansl>
open australia.gdt
loop i = 1..6
loop j = i+1..i+2
print "Hello World!"
endloop
endloop
</hansl>
In that case I get this error message:
"Erro de sintaxe na expressão genr" ("Syntax error in genr
expression")
I do not know if there is something wrong in my code, but I did not get
this error before Gretl. 1.9.10cvs. When I try to fix this error by
putting "$" or "()" inside the second loop Gretl crashes:
<hansl>
open australia.gdt
loop i = 1..6
loop j = $i+1..$i+2
print "Hello World!"
endloop
endloop
</hansl>
The most intriguing fact is that these problems disappear when I use
Gretl in English (instead of Brazilian Portuguese).
Yes that's really weird...
I guess that Allin will spot the bug cause anyway, but out of curiosity,
what happens if you use 'loop j=(i+1)..(i+2)'?
cheers,
sven