As of version 1.4.0, gretl contains a revised mechanism for defining functions in the context of a script. Details follow.[1]
[1] | Note that the revised definition of functions represents a backward-incompatible change relative to version 1.3.3 of the program. |