[Gretl-devel] is loop_maxiter really honored?
Riccardo (Jack) Lucchetti
r.lucchetti at univpm.it
Sat Feb 9 16:29:29 EST 2008
On Sat, 9 Feb 2008, Sven Schreiber wrote:
> I'm not complaining when gretl is tolerant, but I'm really wondering why the
> following script works in the sense that all 20 loop iterations are
> performed, when I thought it should be interrupted after 10:
>
> set loop_maxiter 10
> i=1
> loop 20
> print i
> i = i+1
> end loop
It only applies to "while" loops. It's used to forcibly break
potentially infinite loops. Actually, "help set" could be a little more
explicit on this.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti
More information about the Gretl-devel
mailing list