Dear Gretl users,
I'm a little bit confused about the use of lists with foreach-loops. Please take a
look at the following code:
<hansl>
open australia.gdt
list L1 = PAU PUS
list L2 = E IAU
loop foreach i L1 --quiet
eval varname(i)
eval varname(varnum($i))
eval $i
endloop
loop foreach i L2 --quiet
eval varname(i)
eval varname(varnum($i))
eval $i
endloop
</hansl>
As far as I can think, all the evaluations should exhibit the same results inside each
loop. Am I correct?
Best regards,
Henrique Andrade
Sent from my iPhone