On Mon, 24 May 2010, Allin Cottrell wrote:
On Mon, 24 May 2010, Sven Schreiber wrote:
> Currently a gretl 'list' datatype is strictly different from a
'series'
> type it seems. So when a user-written function expects a list, you
> cannot pass it a series.
For built-in gretl commands a series works as a one-element list;
I agree (I think) that the same should go for user-defined
functions taking a list argument. I'll look into this.
That's now implmented in CVS. If a function wants a list as
argument and the user supplies a single series, then we
automatically construct a temporary list containing that series.
The scope of this list is the function in question; it is
destroyed on exit.
Allin