[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Declaring t:f style functions in other functions
- From: tomas@...
- Date: Wed, 20 Oct 1999 08:25:33 -0200 (EDT)
> 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
end
Tomas