On Mon, 22 Jun 2015, Sven Schreiber wrote:
1) Allin (&Jack): make the non-assigned call special, which
protects the
dataset in place. Downside: no way to get the returned list in a 100%
riskless way; inconsistent etc etc.
I don't think I understand what you mean. If you want the returned list in
a 100% riskless way, all you have to do is assign it to a temporary
variable. What happens is entirely predictable (and hence, I would say,
safe).
<hansl>
function list moo(void)
series y = -1
list ret = y
return ret
end function
nulldata 6
series y = 1
print y
# with this, your original y is safe
moo()
print y
# with this, y is overwritten
list L = moo()
print y
</hansl>
I'm sorry, but I can't see either the risk nor the inconsistency.
-------------------------------------------------------
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
-------------------------------------------------------