This relates to Sven's posting at
http://lists.wfu.edu/pipermail/gretl-devel/2017-January/007220.html
I'm working on getting the "member-of" relation to recurse, as it
ideally should, in "genr" expressions. The simpler task is to get
this right on the right-hand side of an assignment, and I think I've
made some progress. Here's an example of a script that would not
have (fully) worked before, but now should, in git:
<hansl>
matrices M = array(1)
M[1] = seq(1,3)
# array -> matrix -> element
eval M[1][2]
bundle b
b.mat = seq(1,3)
# bundle -> matrix -> submatrix
eval b.mat[2:3]
bundles B = defarray(b)
# array -> bundle -> matrix: OK
eval B[1].mat
# array -> bundle -> matrix -> element
eval B[1].mat[3]
bundle c
c.B = B
# bundle -> array -> bundle -> matrix -> submatrix
eval c.B[1].mat[,-2]
</hansl>
It would be good to have the same sort of thing working on the
left-hand side (assignment to an arbitrarily nested member of a
compound object). We're not there yet but I'm hopeful... Stay tuned.
Allin