lua-users home
lua-l archive

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


I see. Thanks a lot.
Ulrich.

Am 18.04.2016 um 11:35 schrieb Eduardo Ochs:
Function f2 becomes compiled ones when F1 becomes compiled?
yes.

Function f2 will be compiled every time i call f1?
no.

Btw, you can run this and then look at the output...

cd /tmp/

cat > test.lua <<'%%%'
function f1()
   local function f2()
     return "test";
   end;
   return f2()
end;
%%%

luac -p -l -l test.lua

   Cheers,
     E. =)