10 | | Of course, Lua is going to look different from Python because of how the language is written. Where Python uses the 'dot' notation for both calling functions and property access, it is different for Lua. Method calls in Lua use the 'colon' notation, and property access is done with the 'dot' notation. When looking at the [wiki:documentation/LuaManual/APIReference API reference], almost everything is called from an actual object. Exceptions to that rule are constructors (''new''), ''Element.As'', ''Log'', ''DocumentFocus'', and the ''rocket'' table. |
---|
| 10 | Of course, Lua is going to look different from Python because of how the language is written. Where Python uses the 'dot' notation for both calling functions and property access, it is different for Lua. Method calls in Lua use the 'colon' notation, and property access is done with the 'dot' notation. When looking at the [wiki:documentation/LuaManual/APIReference API reference], almost everything is called from an actual object. Exceptions to that rule are constructors (''new''), ''Element.As'', ''Log'', and ''DocumentFocus''. |
---|