On Sat, Jul 2, 2022 at 3:14 PM Sven Schreiber <svetosch(a)gmx.net> wrote:
is this supposed to work? It doesn't and instead gives the bogus error
message about the keyword "to":
<hansl>
function void check(list L)
loop foreach i L
ols L.$i const L.$i(-1 to -2) # symbol 'to' not defined
endloop
end function
open denmark
check(deflist(LRM,LRY))
</hansl>
The whole thing works when I work with a copy to a temp series instead,
The keyword "to" is valid only in a very specific context, and in the
case above that context is not being created. Why not? That's not very
easy to see, but no doubt it can be tracked down via debugging
statements in lib/src/gen*.c. Notice that "to" is indeed the problem
(though it shouldn't be). If you substitute, say,
ols L.$i const L.$i(-1)
for the line in question it works fine.
Allin