lua-users home
lua-l archive

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

> I am facing a little problem: in the following code, the first
> declaration is accepted by luac, but not the second one. Is it
> expected behavior, or a bug (eg can functions be defined in
> another functions body)?
	It is in the manual.  You can't do that.  But you can
write this:

function test ()
  table.method2 = function (self) end