Changes between Version 1 and Version 2 of documentation/LuaManual/PythonDifferences
- Timestamp:
- 05/29/12 17:45:35 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/LuaManual/PythonDifferences
v1 v2 2 2 3 3 == Proxy Tables == 4 See [wiki:documentation/LuaManual/ProxyTables this wiki page] for more information. The general idea is that because Lua doesn't expose a way to iterate over a table, you must call ''proxy:GetTable()'' to get a true table that is able to be iterated over. Otherwise, access to individual items is exactly the same as Python. Not all functions that would return a table return a ''proxy table'', and every single one that does is outlined on the [wiki:documentation/LuaManual/ProxyTables proxy tables page].4 See [wiki:documentation/LuaManual/ProxyTables this wiki page] for more information. Not exactly a difference with Python, but more of a "gotcha" if you iterate over tables without using ''pairs'' or ''ipairs''. Which should be approximately nobody. 5 5 6 6 == Constructors ==