Quantcast
WoWInterface - View Single Post - Why does tinsert work and table.insert not
View Single Post
11-10-19, 03:04 AM   #2
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
You're defining a variable table at row 8 in your code, overwriting the default table implementation.

Lua Code:
  1. table.insert({},1) -- works
  2. table = {}
  3. table.insert({},1) -- nil error
__________________
Oh, the simulated horror!
  Reply With Quote