Question about local functions inside functions.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Question about local functions inside functions.
- From: Ulrich Schmidt <u.sch.zw@...>
- Date: 2016年4月18日 11:21:40 +0200
Hi all.
Imagine the following lua code:
--8<------------------------------------------------
function f1()
local function f2()
return "test";
end;
return f2()
end;
--8<------------------------------------------------
Question:
Function f2 becomes compiled ones when F1 becomes compiled?
or:
Function f2 will be compiled every time i call f1?
tia.
Ulrich.