lua-users home
lua-l archive

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


Hi,

while working on lexically scoped vars I noticed the following bug:

  function foo()
    local a
    bar = function()
      x = { a=1 }      --> error: cannot access outer var 'a'
    end
  end

Sorry, I have no trivial _and_ sane fix for that.

Ciao, ET.


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