On Fri, 9 Nov 2012, Allin Cottrell wrote: > I've sometimes wondered if it would be worth trying to expose some sort of > "enum" system in gretl -- e.g. in this context NONE = 0, SCALAR = 1, SERIES = > 2 and so on. It would obviously be more intuitive to be able to do > > if typeof(whatever) == SCALAR > > where SCALAR codes for an integer. But it means "invading" the user's > available namespace, plus more internal string look-up, so maybe it's not > worth the trouble outside of a compiled language.
I agree, I'd keep the user's namespace as clean as possible. -------------------------------------------------- Riccardo (Jack) Lucchetti Dipartimento di Economia Università Politecnica delle Marche (formerly known as Università di Ancona) r.lucchetti(a)univpm.it http://www2.econ.univpm.it/servizi/hpp/lucchetti --------------------------------------------------