Error checking

When gretl first reads and "compiles" a function definition there is minimal error-checking: the only checks are that the function name is acceptable, and, so far as the body is concerned, that you are not trying to define a function inside a function (see the Section called Defining a function). Otherwise, if the function body contains invalid commands this will become apparent only when the function is called, and its commands are executed.