I've been working lately on some functions contributed by Ignacio, 
and to make things easier for debugging I've added a few small 
features; they'll be documented shortly.

* There's a new "set" variable, "debug".  Turning this on is 
equivalent to setting "echo on" and "messages on" in all functions 
that are called.  (The default is to suppress echo and messages 
inside functions.)

* When a function has a "bool" parameter, we adjust the user input 
so that it's all zeros and ones.  That is, any non-zero values
(apart from NA) are converted to 1s.

* In the GUI editor for function packages there's a new button 
"Save as script".  This saves the package as a regular gretl 
script, containing the public interface and any auxiliary 
functions.

I've also fixed a couple of bugs: the case where a "pointer" 
parameter for a user-defined function has "null" as an option was 
not handled correctly; and the use of the "smpl" command with 
variables given for the starting and ending points of the sample 
range was broken (I'm not sure how I missed that one, and I'll 
make sure there's an example in the gretl test suite).

Allin.

Reply via email to