lua-users home
lua-l archive

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

Roberto wrote:

As far as I know, the "i" variables used in numeric loops
also came from "integer", not from "indexed".

You're probably right.  But what about the "i" in "ipairs"?
Which of the following did it come from?

- the word "integer"
- the word "indexed" (or "index")
- the identifier "i" traditionally used in numeric loops
 (regardless of the source of that tradition)

I realized it may be "a bit of each", but was there a
primary source?  (The reason I wonder if it's not "integer"
is that ipairs of course only sees a table's array indexes,
not non-positive integers or integers beyond the table's

Beginning Lua Programming: