lua-users home
lua-l archive

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


> PS: Btw, why is "function bar()" only allowed in main?

We think that the syntax

  function foo ()
    function bar ()
    end
  end

is too similar to Pascal/Ada/Modula/etc so that people will think it means
the same, that is, that "bar" is local to "foo".

-- Roberto