Hi all,
I've detected a weird gretl behaviour when trying to apply the "foreach"
loop type over vector entries. Loop index "i" is printed very round but
the printf-command in the loop-block is only shown at the very last
iteration for the very first iteration.
This is using latest git on Ubuntu 19.10 -- but I think I've observed
this already before but initially thought I am doing something wrong.
<hansl>
clear
set verbose off
open grunfeld -p -q
matrix id = seq(1,3)'
loop foreach i id -q
smpl full
eval $i # shown every iteration
smpl firm == i --restrict
# shown up only at the very last iteration for the very first iteration
printf "\n%.0f -- %d", i, min(firm)
endloop
</hansl>
Best,
Artur