Am 20.06.2018 um 17:28 schrieb Allin
Cottrell:
I can't find
it now, but I think Sven posted a comment not so long ago about
setting a list within an array. IIRC the point was that the
following did not work when it seemed like it should:
Hi Allin, I don't remember it myself right now. However, in the
recent thread about "variable selection" I wrote:
"And slightly OT about gretl internals: Along the way I've noticed
two things. The first is that the deflist() function doesn't accept
a vector of series IDs as input, in the way that genr-based list
construction like "list L = {1,2}" does; maybe deflist should accept
that.
The second thing is that it would be nice to have a generalization
of the varnum() function, to return a vector of series IDs for a
list input. See my workaround helper function listIDs in the file.
(This would be a bit like the generalization of varname to varnames,
for example.)"
open
somedata.gdt
lists LL = array(3)
LL[1] = 1 2 3 # incompatible types error
Anyway, the intent was indeed that this should work, and now in
today's git it does.
Thanks anyway, whether or not I had mentioned that :-)
cheers,
sven