gemerl20
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 4682 |
|
| |
|
| 19 Nov 2011 07:31 PM |
If you're talking about the __index metamethod, then that fires when you attempt to index a nil value in the table. Ex.
x = {"hi"} print(x[2]) -- if there was a __index metamethod here, it would fire print(x[1]) -- __index wouldnt fire because x[1] exists |
|
|
| Report Abuse |
|
|
| 19 Nov 2011 08:04 PM |
| I thought it fired if just anything was indexed? |
|
|
| Report Abuse |
|