Unable to figure out lua table inheritence
snippet in lua

Unable to figure out lua table inheritence

user5666

setmetatable(tbl.a, {__index=function(self, k) return tbl.b[k](tbl.a.ID) end})