lua-users home
lua-l archive

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


> Øhhh Det ved jeg ikke rigtigt, måske skulle du prøve at trykke på nogle
> taster eller skrive noget kode.

Not sure, as Norweigan is harder to decode for me, with a mainly
Germanic/Romance/classics background, than Portuguese, whether this is a
joke or a reply. In English, I'm guessing that you're asking how to call a
function declared in an outer scope. The way is to use an upvalue, same as
for any other variable, e.g.:

function f()
  function g()
  ...
  end
  function h()
  ... %g() ...
  end
end

(Original question was:)

> Como poderia chamar uma função que está declarada em um outro arquivo???

-- 
http://sc3d.org/rrt/ | humour, n.  unexpected recognition