Am 16.10.2018 um 16:03 schrieb Allin
Cottrell:
On Tue, 16
Oct 2018, oleg_komashko@ukr.net wrote:
Dear Allin,
This is the way I was afraid of the most.
Is it possible to have some substitute?
Say, getvalues(int ID) similar to getinfo()?
My first thought for fixing this (now in git) was to limit access
to series IDs within functions: the function gets to "see" only
the IDs of series that were passed via a series-pointer argument
or as members of a list argument.
I think this was the correct fix, because the other trick was
against the rules.
Now Oleh
implies that this change will break some of his functions. I'm
willing to consider an alternative fix but I think we need to be
clear on the rationale for allowing access to series not given to
a function via arguments. (I take it that is what Oleh wants.)
I agree, in the sense that I think such a rationale must be very
strong if the important principle of function encapsulation were to
be weakened.
Also it seems to me that the relatively recent possibility to add
lists to bundles makes it easier to have quasi-global availability
of a list (and its series members): just pass the bundle around to
the "children" functions. Another possibility might be to copy the
contents (values, numbers) to a matrix and pass the matrix around.
So, maybe we can help with coming up with alternative solutions for
the need to have "global" access.
cheers,
sven