Am 09.02.2008 04:42, Allin Cottrell schrieb:
In working on some scripts lately I've been building lists using
the syntax
list foo = null
loop <something>
...
list foo += varname
...
endloop
This works OK, but I kept forgetting to say "list foo += .."
rather than just "foo += ...". The result was an "unknown
variable in command" error message, which I found confusing at
first, then annoying. (Appearing on the left-hand side of a
genr-type expression, "foo" was not recognized as the name of
anything, unless you prompted gretl to look for lists with the
"list" keyword.)
So I've made a start on incorporating lists into the genr
mechanism more fully. You no longer have to repeat "list" in
front of listnames, as above. Once a list is created, you can add
to it, subtract from it, or redefine it, just using its name.
That's a nice change, thanks. On a related issue, AFAIK matrix
assignments always have to start with 'matrix' as well, or is this no
longer true?
Apart from the fact that it also gets a bit annoying after a while when
you do a lot of matrix stuff, if the behavior for lists changes then it
should change for matrices as well, IMHO. If that isn't possible for
some internal technical reason, maybe some short alias for 'matrix'
could be introduced, like 'mat' or 'mx', or even only 'm' (this
last one
may be too radical)?
thanks,
sven