Changes between Version 5 and Version 6 of documentation/LuaManual/ProxyTables
- Timestamp:
- 06/24/12 05:41:59 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/LuaManual/ProxyTables
v5 v6 3 3 4 4 == Why == 5 The Lua language is fairly simple. It does not have an iterator metamethod like it does for some other operations. Because of this, __pairs and __ipairsare pseudo-metamethods that exist for proxy tables. It is a tradeoff of performance for being a little less flexible. However, since Lua's ''foreach'' is being depreciated, there is almost no reason to not use ''ipairs'' or ''pairs''.5 The Lua language is fairly simple. It does not have an iterator metamethod like it does for some other operations. Because of this, `__pairs` and `__ipairs` are pseudo-metamethods that exist for proxy tables. It is a tradeoff of performance for being a little less flexible. However, since Lua's ''foreach'' is being depreciated, there is almost no reason to not use ''ipairs'' or ''pairs''. 6 6 7 7 == List of proxy tables ==