On Sat, 2 Aug 2008, Gordon Hughes wrote:
Sorry for the lengthy series of comments/questions, but writing
and testing moderately complicated functions really highlights
the interaction of various commands...
No, this is useful: you're pushing the limits, which is fine.
I'll not be able to respond to much of this discussion till
tomorrow, but here's one quick response.
Now I understand what has happened. The "smpl full"
the function has overridden the restricted sample that was given
to the function and reverted to the full sample of data that
gretl has been given...
This was certainly not the intent. The idea is that (as you wish
it) "smpl full", within a function, reverts to the data as given
to the function, which may be a subset of the "primary" data. If
that's not what's actually happening, it's a bug.