[Gretl-devel] null list as parameter

Allin Cottrell cottrell at wfu.edu
Sat May 24 20:56:52 EDT 2008


On Sun, 25 May 2008, Stefano Balietti wrote:

> Well, you are right that wasn't the problem. The problem was 
> that the null list was passed to the ols command and it caused 
> the error. Now the point is that the error message may mislead, 
> and perhaps it should be changed...

Ah, there's a difference that should be resolved, between the 
gretlcli output and the GUI script output.

<script>
function myfoo (series a, const list x[null])
  ols a x
end function

open data4-1
myfoo(price)
</script>

Running the above with gretlcli produces:

<output>
Command has insufficient arguments
error on line 1 of function myfoo
> ols a x

gretlcli: error executing script: halting
> myfoo(price)
</output>

which seems to me fine.  But it's true, in the GUI the error 
message is not so informative.

Allin.


More information about the Gretl-devel mailing list