[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to write function x:y():f() ... end ?
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Thu, 28 Feb 2013 04:57:30 +0300
On Tue, Feb 26, 2013 at 1:42 PM, Carsten Fuchs <carsten.fuchs@cafu.de> wrote:
> function x:y("someObject"):f()
> -- ...
> end
> Unfortunately, this doesn't work
BTW, not every L-value can be used in function definition.
The following code will give compilation error:
local t = {}
function t[1] ()
end