lua-users home
lua-l archive

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


On 24 June 2011 21:26, Patrick Donnelly <batrick@batbytes.com> wrote:
> On Fri, Jun 24, 2011 at 3:57 PM, Kev Lugli <kevlugli@gmail.com> wrote:
>> Hi, I'm trying to do something like this, but I've got no success yet.
>>

and you don't need _G:

a = 'func'
var = {}

var[a] = function (a)
 print(a)
end

var.func("a")