Is it possible to assign a separately defined function to an object as the object's method and be able to access this object's self?
SomeObject = {name = "Jack"}
function someExternalFunction ()
print(self.name)
end
SomeObject.someMethodName = someExternalFunction -- this is just an example
SomeObject:someMethodName() --> prints "Jack"