On Fri, 19 Jun 2015, Allin Cottrell wrote:
I don't see any easy way around this, but I'm open to
suggestions.
I don't have a solution, but I'd like to contribute to the discussion with
a reflection. Everybody loves lists. They're so convenient. However, they
have this feudal privilege (that no other gretl citizen has) of being
somewhat exempt from the principle of strict localisation. This can be
VERY troublesom, at times. Consider this, for example.
<hansl>
function list moo(void)
series you_would_think_this_is_safe = NA
list ret = you_would_think_this_is_safe
return ret
end function
# --- main -----------------------------
nulldata 10
# your precious data
you_would_think_this_is_safe = normal()
# apparently harmless function call
moo()
print you_would_think_this_is_safe
# data are gone!
</hansl>
I don't know about you, but I find this slightly disturbing.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------