Hi,
I am not sure that this is really a bug or part of the spec: While the
foreach-loop iterates 4 times when applied to list X, it only iterates a
single time when iterating over B.X where B is a bundle.
<hansl>
clear
set verbose off
open denmark.gdt -q
list X = dataset
bundle B = _(X)
loop foreach i X
print "$i"
endloop
printf "\n\nnow loop over B.X:\n"
loop foreach i B.X # I guess that is a new feature
print "$i" # NOTE: single loop iteration
endloop
</hansl>
Best,
Artur