Every now and then, when writing scripts, I'd like to use error codes that
are consistent with those in libgretl; of course we have access to the
source code, so it's easy to see what the available error codes are
(
https://sourceforge.net/p/gretl/git/ci/master/tree/lib/src/gretl_errors.c),
but every now and then I find myself using this kind of thing:
<hansl>
set verbose off
k = 1
err = 0
loop while !err --quiet
catch s = errmsg(k)
err = $error
if !err
printf "%3d: %s\n", k++, s
endif
endloop
</endloop>
Would it be worthwhile to add the output of the above to the
documentation? And if so, where?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------