lua-users home
lua-l archive

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


Why do we have this restriction in Lua?  Shouldn't "function var(...)" just be sugar for "var =
function(...)"?

-John


>>>> From Sol "DIFFERENCES TO LUA 4.0"
- In a function definition the name may be an arbitrary sequence of names separated by '.' or
':'.

      function a.b.c() ... end

  (Lua allows only _one_ '.' or ':'.)
<<<<