On Thu, Feb 21, 2008 at 2:00 PM, Alex Davies <alex.mania@iinet.net.au>
wrote:
It's quite an easy change to the parser, see:
http://lua-users.org/lists/lua-l/2008-01/msg00525.html
The patch is a little different though - for my oo system I prefer to
have
implicit selfs inside table functions,
Perhaps the best solution would be to combine this with a second,
independent change that takes:
function :anonmethod(a,b,c)
...
end
as syntactic sugar for:
anonmethod = function(self,a,b,c)
...
end
so table-constructor methods have a lightweight syntax.