lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I suspect the name came from "indexed", like the "i"
> variables often used in numeric loops, but I've sought a
> canonical etymology in vain.  I'd like to hear one from the
> Lua team.

As far as I know, the "i" variables used in numeric loops also came
from "integer", not from "indexed". In Fortran, variables starting with
letters from "i" to "q" (or "o"?) were integers by default, so "i" was
the obvious choice for an integer variable (followed by j, k, etc.).

-- Roberto