lua-users home
lua-l archive

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


On Fri, Oct 28, 2011 at 10:09 AM, HyperHacker <hyperhacker@gmail.com> wrote:
> Could these restrictions not be lifted?

It complicates the rules to satisfy a special case.  For consistency,
could always write all such functions as

funcs['name] = function() ... end

The current rule is pretty straightforward; the t.sym = t['sym'] sugar
is not possible if sym isn't an identifier.

steve d.