Quantcast WoWInterface - View Single Post - Getting the number of indexes in an array.
View Single Post
01-23-14, 05:27 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,054
In this particular case I would just call RegisterEvent 3 times because it's shorter, easier to read, and would use less resources.

Otherwise, pairs or ipairs would be better than getting the length of the table to loop over it.
  Reply With Quote