In the section Actors it incorrectly explains the Lua colon syntax
Actor state, attributes, modifiers and inventory functions all take the
actor as the first parameter, and so can be called using Lua's ':' operator:
x,y,z = foo:get_xyz() -- means the same as: x,y,z = get_xyz(foo)
which should be:
x,y,z = foo:get_xyz() -- means the same as: x,y,z = foo.get_xyz(foo)
It's a sugar for methods/functions that are properties of tables, not for regular functions not associated with a table.
[Please log in to post a comment]