On Wed, 7 Nov 2007, Ignacio Diaz-Emparanza wrote:
> In CVS and Windows snapshot you can do the following (revised
> version of Ignacio's sample script):
>
> <script>
> function sillyfun (string foo, series x)
> series @foo_f1 = x+x(-1)+x(-2)+x(-3)
> series @foo_f2 = x+x(+1)
> list outlist = @foo_f1 @foo_f2
> return list outlist
> end function
>
> open data9-9
> string sname="nocars"
> list alist = sillyfun(sname, nocars)
> print alist
> </script>
>
> Alternatively, you could give the string argument to sillyfun as a
> quoted string literal:
>
> list alist = sillyfun("nocars", nocars)
I just downloaded gretl from CVS and the script does not work (In Kubuntu
Linux).
Strange. It works here. Have you started from scratch or just updated a
previous installation? In the second case, make sure you re-run the usual
sequence
./configure
make
make install (as root)
and check for any errors.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti