lua-users home
lua-l archive

_G function inside table

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, I'm trying to do something like this, but I've got no success yet.
a = 'func'
var={}
function _G['var.'..a](a)
 print 'a'
end
var.func()
I hope you can help me solve this.
Thanks

AltStyle によって変換されたページ (->オリジナル) /