Thread: ipairs bugged?
View Single Post
07/21/14, 12:22 PM   #3
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by Khaibit View Post
From what I understand, ipairs only works with "well-formed" tables (i.e. sequential indices without any gaps, 1-indexed). Your table is missing index 5, which is why ipairs stops there.
Now that you mentioned it I looked up the definition. It appears like "ipairs" for really only is a short version of "for i=1, #table, 1 do":
http://www.luafaq.org/#T1.10

Looks like the source that originally pointed me to ipairs was not precise enough in representing what it cannot do.
  Reply With Quote