[Gretl-devel] another function bug

Sven Schreiber svetosch at gmx.net
Mon Jan 22 10:33:36 EST 2007


Some new bugs I have noticed:

- The most serious: the following example script adds a scalar
"determ_case" to the list of variables, which is completely unintended
and I don't see why it should be so, because it's just an internal
function parameter.

<script>
function vec_decomp (const list endogenous,  int ci_rank[1:10:1]), int
determ_case[1:5:3])

list result = null
loop foreach i endogenous
  series $i_SWP = i
  list result = result $i_SWP
endloop

return list result
end function

## test input:
open denmark
list endo = LRM LRY
list test2 = vec_decomp(endo, 1, 3)
</script>

- The other things are quite trivial: "const", "foreach" and "i" (index
variable) could maybe use some syntax coloring as well, and with "'" as
the transpose notation there are also syntax coloring problems. (It is
interpreted as a string delimiter.)

bye,
sven





More information about the Gretl-devel mailing list