lua-users home
lua-l archive

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


I was wondering if there was a reason we cannot do syntax g (below) in a table. It seems like that would be handy.

t = {
    1, 2, 3,
    a='a',
    b='b',
    f=function() print 'f' end,
    function g() print 'g' end,
}

I'm sure there's a reason, I'm just curious.

Marc