Posted 04 April 2016 - 05:27 PM
Let's say you had some code
But what if we wanted to later do this:
So what would you do
Something like this?
table={
1,
2,
function explainSelf() return table end
}
Running table.explainSelf would clearly return the index the function is stored inBut what if we wanted to later do this:
otherTable={}
otherTable.explainSelf = table.explainSelf
Running otherTable.explainSelf would not return otherTableSo what would you do
Something like this?
function()
return self
end
Edited on 04 April 2016 - 03:29 PM