Chapter 11. User-defined functions

Table of Contents
Introduction
Defining a function
Calling a function
Scope of variables
Return values
Error checking

Introduction

As of version 1.4.0, gretl contains a revised mechanism for defining functions in the context of a script. Details follow.[1]

Notes

[1]

Note that the revised definition of functions represents a backward-incompatible change relative to version 1.3.3 of the program.