On Wed, 22 Apr 2020, Sven Schreiber wrote:
Am 22.04.2020 um 07:56 schrieb Artur Tarassow:
> 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.
Actually I thought this use isn't supported.
It's not supported. What Artur is seeing is the effect of gretl
treating id as a string (matrices not being accepted). There's only
one iteration because only one string: "eval $i" prints id (a column
vector); the number i equals 1 on the single iteration.
Allin