05-10-2015, 04:22 PM
The dot is there for historical reasons, static functions used the dot-binding before we decided to use the colon-binding for all functions.
As for Lua, the colon means that an invisible "self" parameter is passed to the function as its first parameter, so these two are equivalent:
As for Lua, the colon means that an invisible "self" parameter is passed to the function as its first parameter, so these two are equivalent:
object:SomeFunction(param) object.SomeFunction(object, param)