Hi,
not sure whether it's a bug or simply a known limitation of the parser:
loop foreach i varnames(sth)
doesn't work, but
vn = varnames(sth)
loop foreach i vn
does.
I know that this array-loop thing is fairly new in any case.
This is with 2021b.
cheers
sven