lua-users home
lua-l archive

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


On Sun, Jan 17, 2010 at 11:30 AM, Eike Decker <zet23t@googlemail.com> wrote:
> with (t)
>  function ()
>     x,y,z = 1,2,3
>  end
> ---
> Or would there be an syntactical problem that I currently don't see?

I think that's the issue: consider the two lines

f = avalue
function g(x)
...
end

If 'function' could appear directly as a function argument, then these
statements would not work as expected.

steve d.